A curses-style TUI library for the TI-84 Plus CE. Panels, widgets, scenes, dialogs, colors and text styles for CE C programs.
Panels drawn on top of the active scene, such as dialogs.
An overlay is a root panel with its own position and size, drawn over the scene that was active when it opened, and shown only while that scene is. Overlays are opaque and drawn in the order they were opened, the newest on top. They aren’t modal: focus can move between an overlay and the panels under it.
Opening an overlay doesn’t move focus; it remembers the panel that had it. Closing the overlay gives focus back to that panel, but only if focus is in the overlay or empty, and the panel still exists and is on screen.
| Name | Description |
|---|---|
TERM_MAX_OVERLAYS |
Up to this many overlays can be open at once. |
#define TERM_MAX_OVERLAYS 8
Defined in src/titrm.h:283
Up to this many overlays can be open at once.
| Return | Name | Description |
|---|---|---|
term_panel_t * |
term_overlay_open |
Opens an overlay at column col, row row, w by h cells (clipped to the grid). NULL if the pool or overlay limit is full. |
term_panel_t * |
term_overlay_open_centered |
Opens an overlay of w by h cells, centered on the grid. |
void |
term_overlay_close |
Closes an overlay, removing it and its panels, and gives focus back as described above. |
term_panel_t * term_overlay_open(term_ctx_t * ctx, int col, int row, int w, int h)
Defined in src/titrm.h:286
Opens an overlay at column col, row row, w by h cells (clipped to the grid). NULL if the pool or overlay limit is full.
term_panel_t * term_overlay_open_centered(term_ctx_t * ctx, int w, int h)
Defined in src/titrm.h:289
Opens an overlay of w by h cells, centered on the grid.
void term_overlay_close(term_panel_t * overlay)
Defined in src/titrm.h:292
Closes an overlay, removing it and its panels, and gives focus back as described above.