|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
A proportional progress bar: a track plus a value / total fill. More...
#include <ra8_widget_progress_bar.h>
A proportional progress bar: a track plus a value / total fill.
Caller-owned plain data bound to a ra8_widget_t with ra8_widget_progress_bar_init. render fills the whole rect with track, then fills the leftmost clamp(value, 0, total) / total fraction with fill. A total of 0 or a zero-width rect paints the track only (no divide, no fill); a value >= total paints a full bar. The bar is horizontal (fills left to right); rotate the containing panel for a vertical gauge.