class TextUi::TextEditor
- TextUi::TextEditor
- TextUi::Widget
- Reference
- Object
Defined in:
textui/text_editor.crConstructors
Instance Method Summary
-
#border_color : Format
Colors
-
#border_color=(border_color : Format)
Colors
- #create_cursor(x = 0, y = 0) : TextCursor
- #cursor
- #cursors : Array(TextCursor)
- #destroy_cursor(cursor) : Nil
- #handle_cursor_movement(cursor, key)
- #handle_key_input(chr : Char, key : UInt16)
- #handle_line_change(cursor, key) : Nil
- #invalidate
- #open(*args, **options)
- #open(*args, **options, &)
- #render
- #render_cursors
- #save(*args, **options)
- #save(*args, **options, &)
- #show_line_numbers=(value : Bool) : Nil
- #show_line_numbers? : Bool
- #text
- #text=(text) : Nil
- #word_wrap=(value : Bool) : Nil
- #word_wrap? : Bool
Instance methods inherited from class TextUi::Widget
<<(*args, **options)<<(*args, **options, &) <<, absolute_height absolute_height, absolute_width absolute_width, absolute_x absolute_x, absolute_y absolute_y, children : Array(TextUi::Widget) children, clear_text(x, y, text : String, format : Format = @default_format, stop_on_lf = false)
clear_text(x, y, n : Int32, format : Format = @default_format, stop_on_lf = false) clear_text, default_format : Format default_format, default_format=(default_format : Format) default_format=, each_char_pos(x, y, text : String, &) each_char_pos, erase erase, focused=(focused : Bool) focused=, focused? : Bool focused?, handle_key_input(chr : Char, key : UInt16) handle_key_input, height : Int32 height, height=(height : Int32) height=, invalidate invalidate, key_input_handler=(key_input_handler : Proc(Char, UInt16, Nil) | Nil) key_input_handler=, print_char(x : Int32, y : Int32, chr : Char, format : Format = @default_format) print_char, print_line(x : Int32, y : Int32, text : String, format : Format = @default_format, offset = 0, count = text.size, width = 0, ellipsis = true) : Nil print_line, print_lines(x, y, text : String, format : Format = @default_format, width = 0) print_lines, render render, render_cursor render_cursor, set_cursor(x, y) set_cursor, visible=(visible : Bool) visible=, visible? : Bool visible?, width : Int32 width, width=(width : Int32) width=, x : Int32 x, x=(x : Int32) x=, y : Int32 y, y=(y : Int32) y=