abstract class TextUi::Widget
- TextUi::Widget
- Reference
- Object
Direct Known Subclasses
- TextUi::Box
- TextUi::Label
- TextUi::List
- TextUi::StatusBar
- TextUi::Table
- TextUi::TextEditor
- TextUi::Ui
Defined in:
textui/widget.crConstructors
Class Method Summary
Instance Method Summary
- #<<(*args, **options)
- #<<(*args, **options, &)
- #absolute_height
- #absolute_width
- #absolute_x
- #absolute_y
- #children : Array(TextUi::Widget)
- #children?(widget : Widget) : Bool
- #children_focused?
- #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)
- #default_format : Format
- #default_format=(default_format : Format)
- #destroy
- #each_char_pos(x, y, text : String, &)
- #erase
- #focused=(focused : Bool)
- #focused? : Bool
- #height : Int32
- #height=(height : Int32)
- #invalidate
- #move(x : Int32, y : Int32)
- #parent : TextUi::Widget
- #print_char(x : Int32, y : Int32, chr : Char, format : Format = @default_format)
- #print_line(x : Int32, y : Int32, text : String, format : Format = @default_format, offset = 0, count = text.size, width = 0, ellipsis = true) : Nil
- #print_lines(x, y, text : String, format : Format = @default_format, width = 0)
- #render
- #render_cursor
- #resize(width : Int32, height : Int32)
- #set_cursor(x, y)
- #ui
- #visible=(visible : Bool)
- #visible? : Bool
- #width : Int32
- #width=(width : Int32)
- #x : Int32
- #x=(x : Int32)
- #y : Int32
- #y=(y : Int32)
Constructor Detail
def self.new(parent : Widget, x : Int32 = 0, y : Int32 = 0, width : Int32 = 1, height : Int32 = 1)
#