class TUI::Application

Overview

Handles main loop, selections, dispersing events

Included Modules

Defined in:

tui/application.cr

Constructors

Instance Method Summary

Instance methods inherited from module TUI::EventLoop

app : Application app, end_time : Time::Span end_time, end_time? : Time::Span | Nil end_time?, exec exec, painter(*args, **options)
painter(*args, **options, &)
painter
, start_time : Time::Span start_time, start_time? : Time::Span | Nil start_time?, stop stop

Constructor Detail

def self.new(main_widget : Class | Widget, backend : Backend | Class | Nil = nil, first_focus : Widget | Nil = nil, *, title : String | Nil = nil) #

[View source]

Instance Method Detail

def app : Application #

[View source]
def deparent #

[View source]
def dirty? : Bool #

[View source]
def dispatch_draw #

Create a draw event and disperse it to the main widget to go down the widget tree


[View source]
def dispatch_resize(event : Event::Resize) #

[View source]
def dispatch_resize #

[View source]
def exec #

Main loop


[View source]
def focused : Widget | Nil #

[View source]
def focused! : Widget #

[View source]
def focused=(w : Widget | Nil) #

[View source]
def hover : Widget | Nil #

[View source]
def hover! : Widget #

[View source]
def hover=(w : Widget | Nil) #

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

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

[View source]
def reparent(new_parent : Widget) #

[View source]
def title=(arg) #

[View source]