ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_widget_paint Struct Reference

#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.

Detailed Description

Definition at line 521 of file ra8_widget.h.

Field Documentation

◆ draw_text

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.

◆ fill_rect

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.

◆ text_size

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.

◆ user

void* ra8_widget_paint::user

Opaque backend handle handed back to every callback below.

Definition at line 523 of file ra8_widget.h.


The documentation for this struct was generated from the following file: