6 ex_gui_8c example
gullradriel edited this page 2026-10-09 00:55:18 +02:00

ex_gui.c

Nilorea Library GUI system demo - all widget types including dropdown menus, show/hide windows, auto-sizing, scrollbars, resizable windows, and bitmap skinning. Comprehensive demo showcasing every GUI widget available in the nilorea-library n_gui module: buttons (regular + toggle), sliders, text areas, checkboxes, scrollbars, listboxes (single + multi select), radio lists, comboboxes, labels, hyperlinks, images, toggle-button radio groups, dropdown menus with dynamic entries, automatic window sizing, auto-scrollbars, resizable windows, and optional bitmap skinning for windows and widgets.

The main loop also demonstrates the opt-in redraw signal: it draws only when n_gui_needs_redraw() reports a change or animation (or when this example's own mouse crosshair overlay moved), and pairs its timer-driven label updates with n_gui_mark_dirty(), so an untouched, still GUI is not redrawn every frame.