class

Cri::Tui::Panel

Inherits Reference < Object

Constructors

new(id : String, buffer_id : String, title : String, position : String = "main", focused : Bool = false, prompt : String = "", events : EventBus | Nil = nil, editable : Bool = true)
Source

Instance methods

buffer_id
Source
cursor_visual_line(buffers : BufferStore, width : Int32) : Int32
Source
editable
Source
ensure_cursor_visible(buffers : BufferStore, height : Int32, width : Int32 = 80)
Source
events
Source
focused
Source
focused=(focused : Bool)
Source
page_size
Source
position
Source
prompt
Source
prompt=(prompt : String)
Source
render_lines(buffers : BufferStore, height : Int32, width : Int32, theme : Theme | Nil = nil) : Array(String)
Source
scroll
Source
scroll=(scroll : Int32)
Source
scroll_by(delta : Int32)
Source
title
Source
view_start(buffers : BufferStore, height : Int32, width : Int32 = 80) : Int32
Source