|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
An equal-cell navigation strip: N labels, one active, each tappable. More...
#include <ra8_widget_nav_bar.h>
An equal-cell navigation strip: N labels, one active, each tappable.
Caller-owned plain data bound to a ra8_widget_t with ra8_widget_nav_bar_init. items is a caller-owned array of count NUL-terminated labels; active is the highlighted (inked) index; selected records the last cell a touch hit. render splits the rect into count equal-width cells and centres each label (active -> fg_active, else fg_muted). on_input maps a touch X to a cell index, stores it in selected, and fires on_select – the caller decides whether to move active in response.