31static const char*
s_tag =
"ra8_widget_reflow_view";
37typedef enum : uint16_t {
62 const int32_t x = (int32_t)mx;
63 const int32_t y = (int32_t)my;
67 body.
w = rect->
w - (x + x);
68 body.
h = rect->
h - (y + y);
158 if (v->paint !=
nullptr) {
161 if ((v->ops ==
nullptr) || (v->ops->render_page ==
nullptr)) {
165 v->ops->render_page(v->ops->user, v->page, &body);
191 if ((v->ops ==
nullptr) || (v->ops->follow_link ==
nullptr)) {
194 uint16_t dest = v->page;
195 if (!v->ops->follow_link(v->ops->user, v->page, ev->
x, ev->
y, &dest)) {
234 const int32_t mid = w->rect.x + (w->rect.w / 2);
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.
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).