ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_widget_button_t Struct Reference

A push-button leaf widget: a bordered face + label that latches on tap. More...

#include <ra8_widget.h>

Detailed Description

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.

Invariant
border_w >= 0.
presses only ever increases.
See also
ra8_widget_button_init
Since
0.1.0

The documentation for this struct was generated from the following file: