class

TextUi::TextEditor

Inherits TextUi::Widget / Reference / Object

Constructors

new(parent, x, y, width = 1, height = 1)
Source

Instance methods

border_color

Colors

Source
border_color=(border_color : Format)

Colors

Source
create_cursor(x = 0, y = 0) : TextCursor
Source
cursor
Source
cursor_changed
Source
cursors
Source
destroy_cursor(cursor) : Nil
Source
document
Source
filename
Source
filename(*args, **options)
Source
filename(*args, **options, &)
Source
filename=(filename : String)
Source
invalidate
Source
key_typed
Source
open(filename : String)
Source
render
Source
render_cursors
Source
save
Source
save(*args, **options)
Source
save(*args, **options, &)
Source
show_line_numbers=(value : Bool) : Nil
Source
show_line_numbers?
Source
syntax_highlighter=(arg)
Source
tab_width

Tab key will be replaced by this number of spaces, a number <= 0 means to not recognize tab key.

Source
tab_width=(tab_width : Int32)

Tab key will be replaced by this number of spaces, a number <= 0 means to not recognize tab key.

Source
text
Source
text=(text) : Nil
Source
undo_stack_merge_interval=(arg)
Source
widget_too_small?

Return true if the widget is too small to be rendered. If a widget is too small it wont be rendered or receive any input events.

Source
word_wrap=(value : Bool) : Nil
Source
word_wrap?
Source

Nested types