abstract class TextUi::Widget
- TextUi::Widget
- Reference
- Object
Direct Known Subclasses
Defined in:
textui/widget.crConstructors
Instance Method Summary
- #<<(*args, **options)
- #<<(*args, **options, &)
- #absolute_height
- #absolute_width
- #absolute_x
- #absolute_y
- #backgroundColor : TextUi::Color
- #backgroundColor=(backgroundColor : TextUi::Color)
- #children : Array(TextUi::Widget)
- #clear_text(x, y, n : Int32, foreground = @foregroundColor, background = @backgroundColor, stop_on_lf = false)
- #clear_text(x, y, text, foreground = @foregroundColor, background = @backgroundColor, stop_on_lf = false)
- #each_char_pos(x, y, text : String, &)
- #focused=(focused : Bool)
- #focused? : Bool
- #foregroundColor : TextUi::Color
- #foregroundColor=(foregroundColor : TextUi::Color)
- #handle_key_input(chr : Char, key : UInt16)
- #height : Int32
- #height=(height : Int32)
- #invalidate
- #key_input_handler=(key_input_handler : Proc(Char, UInt16, Nil) | Nil)
- #print_line(x : Int32, y : Int32, text : String, foreground = @foregroundColor, background = @backgroundColor, width = 0) : Nil
- #print_lines(x, y, text : String, foreground = @foregroundColor, background = @backgroundColor, width = 0)
- #putc(x : Int32, y : Int32, chr : Char, foreground = @foregroundColor, background = @backgroundColor)
- #render
- #render_cursor
- #set_cursor(x, y)
- #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 = 0, height : Int32 = 0)
#
Instance Method Detail
def clear_text(x, y, n : Int32, foreground = @foregroundColor, background = @backgroundColor, stop_on_lf = false)
#
def clear_text(x, y, text, foreground = @foregroundColor, background = @backgroundColor, stop_on_lf = false)
#
def print_line(x : Int32, y : Int32, text : String, foreground = @foregroundColor, background = @backgroundColor, width = 0) : Nil
#
def print_lines(x, y, text : String, foreground = @foregroundColor, background = @backgroundColor, width = 0)
#
def putc(x : Int32, y : Int32, chr : Char, foreground = @foregroundColor, background = @backgroundColor)
#