29static const char*
s_tag =
"ra8_widget_status_bar";
34typedef enum : int16_t {
67 if (text ==
nullptr) {
70 if (paint->draw_text ==
nullptr) {
76 paint->draw_text(paint->user, tx, ty, text, fg, bg);
101 if (sb->paint ==
nullptr) {
117 if (sb->paint->fill_rect ==
nullptr) {
120 sb->paint->fill_rect(sb->paint->user,
122 (r->
y + r->
h) - (int32_t)sb->rule_h,
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).