30static const char*
s_tag =
"ra8_widget_button";
51 return b->face_pressed;
78 if (b->paint ==
nullptr) {
83 if (b->text ==
nullptr) {
86 if (b->paint->draw_text ==
nullptr) {
92 b->paint->draw_text(b->paint->user, tx, ty, b->text, b->fg, face);
124 b->pressed = !b->pressed;
127 if (b->on_press !=
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.