TextUi::TextEditor
Inherits TextUi::Widget / Reference / Object
Constructors
new(parent, x, y, width = 1, height = 1)
SourceInstance methods
create_cursor(x = 0, y = 0) : TextCursor
Sourcecursor
Sourcecursor_changed
Sourcecursors
Sourcedestroy_cursor(cursor) : Nil
Sourcedocument
Sourcefilename
Sourcefilename(*args, **options)
Sourcefilename(*args, **options, &)
Sourcefilename=(filename : String)
Sourceinvalidate
Sourcekey_typed
Sourceopen(filename : String)
Sourcerender
Sourcerender_cursors
Sourcesave
Sourcesave(*args, **options)
Sourcesave(*args, **options, &)
Sourceshow_line_numbers=(value : Bool) : Nil
Sourceshow_line_numbers?
Sourcesyntax_highlighter=(arg)
Sourcetab_width
Tab key will be replaced by this number of spaces, a number <= 0 means to not recognize tab key.
tab_width=(tab_width : Int32)
Tab key will be replaced by this number of spaces, a number <= 0 means to not recognize tab key.
text
Sourcetext=(text) : Nil
Sourceundo_stack_merge_interval=(arg)
Sourcewidget_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.
word_wrap=(value : Bool) : Nil
Sourceword_wrap?
Source