ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_widget_internal.h
Go to the documentation of this file.
1
26
27#pragma once
28
29#include <stdint.h>
30
31#include "ra8_attributes.h"
32#include "ra8_widget.h"
33
73 const ra8_ui_rect_t* rect,
74 const char* text,
75 int16_t pad,
77 int32_t* out_x,
78 int32_t* out_y);
79
114 const ra8_ui_rect_t* rect,
115 uint32_t fill,
116 uint32_t border,
117 int16_t border_w);
118
152RA8_PRIV int32_t priv_widget_fill_frac(uint32_t value, uint32_t total, int32_t width);
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
Zero-heap composable widget layer (dwm-style) over ra8_box + ra8_ui.
ra8_widget_align_t
Horizontal placement of a leaf widget's text within its rect.
Definition ra8_widget.h:540
void priv_widget_fill_box(const ra8_widget_paint_t *paint, const ra8_ui_rect_t *rect, uint32_t fill, uint32_t border, int16_t border_w)
Fill a widget rect with an optional 1-or-more-pixel border.
int32_t priv_widget_fill_frac(uint32_t value, uint32_t total, int32_t width)
Filled width in pixels for a value / total bar spanning width.
void priv_widget_text_pos(const ra8_widget_paint_t *paint, const ra8_ui_rect_t *rect, const char *text, int16_t pad, ra8_widget_align_t align, int32_t *out_x, int32_t *out_y)
Compute where a leaf widget's text should start within its rect.
Axis-aligned rectangle in framebuffer pixel coordinates.
Definition ra8_ui.h:72
Drawing backend the concrete leaf widgets paint through (a DI seam).