class TUI::Application
- TUI::Application
- Reference
- Object
Overview
Handles main loop, selections, dispersing events
Included Modules
Defined in:
tui/application.crConstructors
Instance Method Summary
- #app : Application
- #deparent
- #dirty? : Bool
-
#dispatch_draw
Create a draw event and disperse it to the main widget to go down the widget tree
- #dispatch_resize(event : Event::Resize)
- #dispatch_resize
-
#exec
Main loop
- #focused : Widget | Nil
- #focused! : Widget
- #focused=(w : Widget | Nil)
- #hover : Widget | Nil
- #hover! : Widget
- #hover=(w : Widget | Nil)
- #poll(*args, **options)
- #poll(*args, **options, &)
- #reparent(new_parent : Widget)
- #title=(arg)
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)
#
Instance Method Detail
def dispatch_draw
#
Create a draw event and disperse it to the main widget to go down the widget tree