Guide#

How CEUI works and how to use every part of it. Start with the frame loop; the rest can be read in any order.

The frame loop

Immediate mode, where state lives, when frames run, and how to quit.

The frame loop
Keys and focus

The key table, spatial navigation, ids and reading keys yourself.

Keys and focus
Layout

Stacking, columns, heights, panels and scroll areas.

Layout
Widgets

Every widget with a short example and a screenshot.

Widgets
Text and formatting

Wrapped text, labels, captions and ui_fmt.

Text and formatting
Text input

Text fields, input modes, the key map and the text area.

Text input
Lists and tables

Virtual rows, headers, columns and paging.

Lists and tables
Tabs

A row of tabs and the content under it.

Tabs
Overlays

Modals, messages, confirmations, menus, selects and toasts.

Overlays
Drawing

Sprites and your own graphx drawing in a canvas.

Drawing
Styling

Style records, states, palette slots, fonts and metrics.

Styling
Themes

The four built-in themes and writing your own.

Themes
Flash apps

Building a CEUI program as an app, and the header workaround.

Flash apps
Configuration

Buffer sizes, limits and timings you can change with -D.

Configuration
Size and speed

Measured sizes, RAM and frame times, and where the time goes.

Size and speed
Troubleshooting

Common problems and how to fix them.

Troubleshooting
Testing in CEbox

Golden screenshots of your own program in an emulator.

Testing in CEbox