|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
A push-button leaf widget: a bordered face + label that latches on tap. More...
#include <ra8_widget.h>
A push-button leaf widget: a bordered face + label that latches on tap.
Paints a filled, optionally bordered face (a different fill while pressed) with an aligned label. Its on_input consumes a touch (the dispatcher has already hit-tested it onto the button): each tap flips pressed, increments presses, marks the button dirty with the fast hint (so only its rect re-flushes), then invokes the optional on_press callback. Button events are ignored (left for other widgets). Caller-owned plain data, bound with ra8_widget_button_init.