CEUI#
CEUI is an immediate-mode UI toolkit for TI-84 Plus CE C programs and flash apps. It is compiled into your program,
so you only pay for the widgets you use, and it needs only graphx on the calculator.
Get started · Guide · API reference · GitHub
Call widgets from a loop. State lives in your own variables, with no widget tree and no callbacks.
Link time optimization drops every widget, style and glyph your program never calls.
Arrows move focus spatially across rows, grids and forms. Scroll areas follow the focus.
Buttons, switches, sliders, pickers, text fields, lists, tables, tabs, dialogs, menus and toasts.
Four built-in themes. A style is a 29 byte record and colors are palette slots, so dark mode is a palette write.
Each frame is compared with the one before, and only the tiles under changed commands are drawn again.
At a glance#
#include <ui.h>
int main(void)
{
int presses = 0;
ui_init();
while (ui_frame()) {
ui_titlebar("Hello", NULL);
if (ui_button("Press me")) presses++;
ui_label(ui_fmt("Pressed %d times", presses));
if (ui_key_pressed(sk_Clear)) ui_quit();
}
ui_exit();
return 0;
}
NAME = HELLO
UI_THEME = default
include vendor/ceui/ui.mk
include $(shell cedev-config --makefile)
The gallery test program in the default theme.#