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

#include <ra8_widget_book.h>

Collaboration diagram for ra8_widget_book_grid:

Data Fields

const ra8_widget_paint_tpaint
 Draw backend (NULL -> draws nothing).
const ra8_widget_book_tbooks
 Array of count book records.
void(* on_open )(struct ra8_widget *w, uint16_t index)
 Tap callback (opt/NULL).
uint32_t bg
 Grid background colour, 0xRRGGBB.
uint32_t title_fg
 Title text colour, 0xRRGGBB.
uint32_t author_fg
 Author text colour, 0xRRGGBB.
uint32_t bar_track
 Card progress track colour, 0xRRGGBB.
uint32_t bar_fill
 Card progress fill colour, 0xRRGGBB.
uint16_t count
 Number of book cards.
uint16_t cols
 Grid columns (>= 1).
uint16_t selected
 Last-tapped card index (observable).
int16_t pad
 Grid inner padding, pixels.
int16_t gap
 Gap between cards, pixels.
int16_t label_h
 Title / author row height, pixels.
int16_t bar_h
 Card progress-bar height, pixels.

Detailed Description

Definition at line 93 of file ra8_widget_book.h.

Field Documentation

◆ author_fg

uint32_t ra8_widget_book_grid::author_fg

Author text colour, 0xRRGGBB.

Definition at line 100 of file ra8_widget_book.h.

◆ bar_fill

uint32_t ra8_widget_book_grid::bar_fill

Card progress fill colour, 0xRRGGBB.

Definition at line 102 of file ra8_widget_book.h.

◆ bar_h

int16_t ra8_widget_book_grid::bar_h

Card progress-bar height, pixels.

Definition at line 109 of file ra8_widget_book.h.

◆ bar_track

uint32_t ra8_widget_book_grid::bar_track

Card progress track colour, 0xRRGGBB.

Definition at line 101 of file ra8_widget_book.h.

◆ bg

uint32_t ra8_widget_book_grid::bg

Grid background colour, 0xRRGGBB.

Definition at line 98 of file ra8_widget_book.h.

◆ books

const ra8_widget_book_t* ra8_widget_book_grid::books

Array of count book records.

Definition at line 95 of file ra8_widget_book.h.

◆ cols

uint16_t ra8_widget_book_grid::cols

Grid columns (>= 1).

Definition at line 104 of file ra8_widget_book.h.

◆ count

uint16_t ra8_widget_book_grid::count

Number of book cards.

Definition at line 103 of file ra8_widget_book.h.

◆ gap

int16_t ra8_widget_book_grid::gap

Gap between cards, pixels.

Definition at line 107 of file ra8_widget_book.h.

◆ label_h

int16_t ra8_widget_book_grid::label_h

Title / author row height, pixels.

Definition at line 108 of file ra8_widget_book.h.

◆ on_open

void(* ra8_widget_book_grid::on_open) (struct ra8_widget *w, uint16_t index)

Tap callback (opt/NULL).

Definition at line 97 of file ra8_widget_book.h.

◆ pad

int16_t ra8_widget_book_grid::pad

Grid inner padding, pixels.

Definition at line 106 of file ra8_widget_book.h.

◆ paint

const ra8_widget_paint_t* ra8_widget_book_grid::paint

Draw backend (NULL -> draws nothing).

Definition at line 94 of file ra8_widget_book.h.

◆ selected

uint16_t ra8_widget_book_grid::selected

Last-tapped card index (observable).

Definition at line 105 of file ra8_widget_book.h.

◆ title_fg

uint32_t ra8_widget_book_grid::title_fg

Title text colour, 0xRRGGBB.

Definition at line 99 of file ra8_widget_book.h.


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