class

MainWindow

Inherits Control < Reference < Object

Constructors

Instance methods

active_control
Source
active_control=(control : Control)
Source
active_control?
Source
add_keys(keys)
Source
all_children
Source
do_refresh

repaints the screen.

Source
focus

called when this control becomes the active control. It will start receiving keystrokes after this point.

Source
focusable?

MainWindow is not directly interactive, though being the top-level parent, it does see keystrokes.

Source
handle_key(k)

modeled after bubbling events in web browsers. Send the key to the currently active control, and continue sending it up the control's parents, so long as each control returns :continue. If any control sets it's dirty flag, trigger a refresh.

Source
handle_refresh
Source
keys
Source
load_keys
Source
next_control
Source
paint(term)

Sets focus to the nearest child/sibling control.

Source
quit

exit the program. Not named exit because that is a crystal kernel method.

Source
react_to_keys
Source
read_keys

Keys are processed in their own fiber.

Source
refresh
Source
sort_keys
Source
terminate
Source
text

MainWindow holds other controls so has no text of it's own.

Source