Tuix.Runtime (tuix v0.1.5)

Copy Markdown View Source

The event loop: holds the Tuix.App state, dispatches input and resize events to the app's callbacks, manages keyboard focus (Tab / Shift+Tab traversal over focusable elements, click-to-focus for mouse presses), routes keys to the focused component element (see Tuix.Component), stamps mouse events with the hit-tested target (see Tuix.HitTest), scrolls the scroll box under the pointer on wheel events, synthesizes :click events from press/release pairs (see Tuix.Runtime.Click), and re-renders after every state change.

Rendering is event-driven — nothing is written to the terminal unless state may have changed, and only changed cells are written.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)