class TextUi::Ui

Defined in:

textui/ui.cr

Constructors

Instance Method Summary

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, backgroundColor : TextUi::Color backgroundColor, backgroundColor=(backgroundColor : TextUi::Color) backgroundColor=, children : Array(TextUi::Widget) children, 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)
clear_text
, each_char_pos(x, y, text : String, &) each_char_pos, erase erase, focused=(focused : Bool) focused=, focused? : Bool focused?, foregroundColor : TextUi::Color foregroundColor, foregroundColor=(foregroundColor : TextUi::Color) foregroundColor=, 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_line(x : Int32, y : Int32, text : String, foreground = @foregroundColor, background = @backgroundColor, width = 0) : Nil print_line, print_lines(x, y, text : String, foreground = @foregroundColor, background = @backgroundColor, width = 0) print_lines, putc(x : Int32, y : Int32, chr : Char, foreground = @foregroundColor, background = @backgroundColor) putc, 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=

Constructor methods inherited from class TextUi::Widget

new(parent : Widget, x : Int32 = 0, y : Int32 = 0, width : Int32 = 0, height : Int32 = 0) new

Constructor Detail

def self.new(color_mode = ColorMode::Just256Colors) #

[View source]

Instance Method Detail

def absolute_height #

[View source]
def absolute_width #

[View source]
def absolute_x #

[View source]
def absolute_y #

[View source]
def add_focus_shortcut(key : Int32, widget : Widget) #

[View source]
def focus(widget : Widget | Nil) : Nil #

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

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

[View source]
def main_loop #

[View source]
def on_resize(proc : Int32, Int32 -> ) #

[View source]
def process_events #

[View source]
def render #

[View source]
def shutdown! #

[View source]