class

Ori::AreaNode

Inherits Ori::Node < Reference < Object

Constants

BORDER_OFF = "#4A3F6B"
BORDER_ON = "#A78BFA"

Constructors

new(value : String = "", on_change : Proc(String, Int32, Int32, Nil) | Nil = nil, on_cursor : Proc(Int32, Int32, Nil) | Nil = nil, cursor_row : Int32 = 0, cursor_col : Int32 | Nil = nil, char_limit : Int32 = 0, show_line_numbers : Bool = false, highlights : Array(Tuple(Int32, Int32, Int32)) = [] of Tuple(Int32, Int32, Int32), style : Ori::S = Ori::S.none)
Source

Instance methods

content_height
Source
content_width
Source
cursor_col
Source
cursor_position
Source
cursor_row
Source
delete_word_backward
Source
delete_word_forward
Source
focusable?
Source
kill_to_end
Source
kill_to_start
Source
line(row : Int32) : String
Source
line_count
Source
on_key(key : Ori::Key) : Bool
Source
page_down
Source
page_up
Source
render(io : IO) : Nil
Source
render_screen(screen : Ori::Screen) : Nil
Source
value
Source
value=(text : String)
Source
word_left
Source
word_right
Source