31static const char*
s_tag =
"ra8_widget_toolbar";
54 const int32_t pad = (int32_t)bar->pad;
55 const int32_t chip = (int32_t)bar->count_w;
56 const int32_t field_w = band->
w - (pad + pad) - chip - pad;
60 r.
w = (field_w > 0) ? field_w : 0;
61 r.
h = band->
h - (pad + pad);
87 if (bar->paint ==
nullptr) {
95 if (p->draw_text ==
nullptr) {
98 if (bar->hint !=
nullptr) {
102 p->draw_text(p->user, hx, hy, bar->hint, bar->hint_fg, bar->field);
104 if (bar->count !=
nullptr) {
108 p->draw_text(p->user, cx, cy, bar->count, bar->count_fg, bar->bg);
134 if (bar ==
nullptr) {
146 if (bar->on_search !=
nullptr) {
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.
Bounded UI interaction core: hit-testing, screen stack, paging.
bool ra8_ui_rect_contains(const ra8_ui_rect_t *r, int32_t px, int32_t py)
Test whether a point lies inside a rectangle.
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).