ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_widget_progress_bar.h
Go to the documentation of this file.
1
25
26#pragma once
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#include <stdint.h>
33
34#include "ra8_err.h"
35#include "ra8_widget.h"
36
66 uint32_t track;
67 uint32_t fill;
68 uint16_t value;
69 uint16_t total;
71
94
123
124#ifdef __cplusplus
125}
126#endif
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
Zero-heap composable widget layer (dwm-style) over ra8_box + ra8_ui.
ra8_err_t ra8_widget_progress_bar_init(ra8_widget_t *w, ra8_widget_progress_bar_t *bar)
Bind a widget instance to a progress bar.
const ra8_widget_vtable_t * ra8_widget_progress_bar_vtable(void)
Return the shared vtable backing every progress-bar widget.
Drawing backend the concrete leaf widgets paint through (a DI seam).
A proportional progress bar: a track plus a value / total fill.
uint32_t fill
Filled-portion colour, 0xRRGGBB.
uint16_t value
Current progress value (clamped to total).
uint16_t total
Full-scale value; 0 -> empty (no fill).
const ra8_widget_paint_t * paint
Draw backend (NULL -> draws nothing).
uint32_t track
Track (unfilled) fill colour, 0xRRGGBB.
One widget instance (caller-owned, no allocation).
Behaviour table shared by all widgets of one kind.
Definition ra8_widget.h:121