class

TUI::Application

Inherits TUI::EventLoop < Reference < Object

Handles main loop, selections, dispersing events

Constructors

new(main_widget : Class | Widget, backend : Backend | Class | Nil = nil, first_focus : Widget | Nil = nil, *, title : String | Nil = nil)
Source

Instance methods

deparent
Source
dirty?
Source
dispatch_draw

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

Source
dispatch_resize(event : Event::Resize)
Source
dispatch_resize
Source
exec

Main loop

Source
focused
Source
focused!
Source
focused=(w : Widget | Nil)
Source
hover
Source
hover!
Source
hover=(w : Widget | Nil)
Source
poll(*args, **options)
Source
poll(*args, **options, &)
Source
reparent(new_parent : Widget)
Source
title=(arg)
Source