API reference#
The whole API is two headers. ui.h has every function and is the only one a program includes; it includes
ui_theme.h, which has the style types, palette roles and theme objects.
ui_init, ui_frame, ui_quit, ui_exit, ui_wake, ui_ms.
Reading keys, ids, enabling and focus.
Columns, heights, panels and scroll areas.
Title bar, softkeys, text, buttons, values and text input.
Virtual lists, table headers and tabs.
Modals, messages, confirmations, menus and toasts.
Images and canvases.
Per-widget styles and the palette at run time.
Style types, roles, macros and theme objects.
Every function#
Function |
Returns |
|---|---|
Nothing |
|
False once |
|
Milliseconds since |
|
This frame’s unused key, or 0 |
|
True when the key matched; it is used up |
|
Nothing |
|
True when the last widget has focus |
|
Nothing |
|
The palette index of a slot |
|
The formatted text |
|
Nothing |
|
|
Nothing |
Nothing |
|
|
|
Nothing |
|
True in the frame it is activated |
|
|
True in the frame the value changed |
True in the frame it is activated |
|
Nothing |
|
True when |
|
True in the frame the text changed |
|
Nothing |
|
True for each visible row |
|
The activated row, or -1 |
|
Nothing |
|
True in the frame the tab changed |
|
True while the modal is open |
|
Nothing |
|
|
|
The picked item, or -1 |
|
Nothing |