abstract class TextUi::Widget

Direct Known Subclasses

Defined in:

textui/widget.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(parent : Widget, x : Int32 = 0, y : Int32 = 0, width : Int32 = 0, height : Int32 = 0) #

[View source]

Instance Method Detail

def <<(*args, **options) #

[View source]
def <<(*args, **options, &) #

[View source]
def absolute_height #

[View source]
def absolute_width #

[View source]
def absolute_x #

[View source]
def absolute_y #

[View source]
def backgroundColor : TextUi::Color #

[View source]
def backgroundColor=(backgroundColor : TextUi::Color) #

[View source]
def children : Array(TextUi::Widget) #

[View source]
def clear_text(x, y, n : Int32, foreground = @foregroundColor, background = @backgroundColor, stop_on_lf = false) #

[View source]
def clear_text(x, y, text, foreground = @foregroundColor, background = @backgroundColor, stop_on_lf = false) #

[View source]
def each_char_pos(x, y, text : String, &) #

[View source]
def focused=(focused : Bool) #

[View source]
def focused? : Bool #

[View source]
def foregroundColor : TextUi::Color #

[View source]
def foregroundColor=(foregroundColor : TextUi::Color) #

[View source]
def handle_key_input(chr : Char, key : UInt16) #

[View source]
def height : Int32 #

[View source]
def height=(height : Int32) #

[View source]
def invalidate #

[View source]
def key_input_handler=(key_input_handler : Proc(Char, UInt16, Nil) | Nil) #

[View source]
def print_line(x : Int32, y : Int32, text : String, foreground = @foregroundColor, background = @backgroundColor, width = 0) : Nil #

[View source]
def print_lines(x, y, text : String, foreground = @foregroundColor, background = @backgroundColor, width = 0) #

[View source]
def putc(x : Int32, y : Int32, chr : Char, foreground = @foregroundColor, background = @backgroundColor) #

[View source]
abstract def render #

[View source]
def render_cursor #

[View source]
def set_cursor(x, y) #

[View source]
def width : Int32 #

[View source]
def width=(width : Int32) #

[View source]
def x : Int32 #

[View source]
def x=(x : Int32) #

[View source]
def y : Int32 #

[View source]
def y=(y : Int32) #

[View source]