30static const char*
s_tag =
"ra8_widget_progress_bar";
35typedef enum : int32_t {
61 if (pb->paint ==
nullptr) {
64 if (pb->paint->fill_rect ==
nullptr) {
68 pb->paint->fill_rect(pb->paint->user, r->
x, r->
y, r->
w, r->
h, pb->track);
71 pb->paint->fill_rect(pb->paint->user, r->
x, r->
y, fw, r->
h, pb->fill);
static const char * s_tag
Logging / check tag.
#define RA8_INTERNAL
Marker that a function is intended to be static (file-local).
Validation and Error-Checking Macros for ra8-firmware.
#define RA8_CHECK_NULL_PTR(ptr, tag, message)
Reject nullptr pointer, returning k_ra8_err_null_ptr.
@ k_ra8_ok
Success – operation completed with all postconditions satisfied.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Axis-aligned rectangle in framebuffer pixel coordinates.
int32_t w
Width (pixels, >= 0).
int32_t h
Height (pixels, >= 0).
int32_t x
Left edge (pixels).
int32_t y
Top edge (pixels).