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

#include <ra8_widget.h>

Collaboration diagram for ra8_widget_button:

Data Fields

const ra8_widget_paint_tpaint
 Draw backend (NULL -> no draw).
const char * text
 Label (NULL -> face only).
void(* on_press )(struct ra8_widget *w)
 Press callback (optional / NULL).
uint32_t fg
 Label colour, 0xRRGGBB.
uint32_t face
 Face fill when released, 0xRRGGBB.
uint32_t face_pressed
 Face fill when pressed, 0xRRGGBB.
uint32_t border
 Outline colour, 0xRRGGBB.
uint32_t presses
 Count of taps consumed (observable).
int16_t pad
 Inner label inset, pixels.
int16_t border_w
 Outline thickness, pixels (>= 0).
ra8_widget_align_t align
 Label alignment.
bool pressed
 Latched pressed state.
uint8_t reserved
 Padding to a 4-byte boundary.

Detailed Description

Definition at line 591 of file ra8_widget.h.

Field Documentation

◆ align

ra8_widget_align_t ra8_widget_button::align

Label alignment.

Definition at line 602 of file ra8_widget.h.

◆ border

uint32_t ra8_widget_button::border

Outline colour, 0xRRGGBB.

Definition at line 598 of file ra8_widget.h.

◆ border_w

int16_t ra8_widget_button::border_w

Outline thickness, pixels (>= 0).

Definition at line 601 of file ra8_widget.h.

◆ face

uint32_t ra8_widget_button::face

Face fill when released, 0xRRGGBB.

Definition at line 596 of file ra8_widget.h.

◆ face_pressed

uint32_t ra8_widget_button::face_pressed

Face fill when pressed, 0xRRGGBB.

Definition at line 597 of file ra8_widget.h.

◆ fg

uint32_t ra8_widget_button::fg

Label colour, 0xRRGGBB.

Definition at line 595 of file ra8_widget.h.

◆ on_press

void(* ra8_widget_button::on_press) (struct ra8_widget *w)

Press callback (optional / NULL).

Definition at line 594 of file ra8_widget.h.

◆ pad

int16_t ra8_widget_button::pad

Inner label inset, pixels.

Definition at line 600 of file ra8_widget.h.

◆ paint

const ra8_widget_paint_t* ra8_widget_button::paint

Draw backend (NULL -> no draw).

Definition at line 592 of file ra8_widget.h.

◆ pressed

bool ra8_widget_button::pressed

Latched pressed state.

Definition at line 603 of file ra8_widget.h.

◆ presses

uint32_t ra8_widget_button::presses

Count of taps consumed (observable).

Definition at line 599 of file ra8_widget.h.

◆ reserved

uint8_t ra8_widget_button::reserved

Padding to a 4-byte boundary.

Definition at line 604 of file ra8_widget.h.

◆ text

const char* ra8_widget_button::text

Label (NULL -> face only).

Definition at line 593 of file ra8_widget.h.


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