|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
#include <ra8_widget.h>
Data Fields | |
| void * | user |
| Opaque backend handle handed back to every callback below. | |
| void(* | fill_rect )(void *user, int32_t x, int32_t y, int32_t w, int32_t h, uint32_t color) |
| Fill an axis-aligned rectangle with one solid colour. | |
| void(* | draw_text )(void *user, int32_t x, int32_t y, const char *str, uint32_t fg, uint32_t bg) |
Draw a NUL-terminated ASCII string in fg over bg. | |
| void(* | text_size )(void *user, const char *str, int32_t *out_w, int32_t *out_h) |
| Measure a string's pixel size; NULL disables centre/right align. | |
Definition at line 521 of file ra8_widget.h.
| void(* ra8_widget_paint::draw_text) (void *user, int32_t x, int32_t y, const char *str, uint32_t fg, uint32_t bg) |
Draw a NUL-terminated ASCII string in fg over bg.
Definition at line 527 of file ra8_widget.h.
| void(* ra8_widget_paint::fill_rect) (void *user, int32_t x, int32_t y, int32_t w, int32_t h, uint32_t color) |
Fill an axis-aligned rectangle with one solid colour.
Definition at line 525 of file ra8_widget.h.
| void(* ra8_widget_paint::text_size) (void *user, const char *str, int32_t *out_w, int32_t *out_h) |
Measure a string's pixel size; NULL disables centre/right align.
Definition at line 529 of file ra8_widget.h.
| void* ra8_widget_paint::user |
Opaque backend handle handed back to every callback below.
Definition at line 523 of file ra8_widget.h.