Muteki
EABI code execution on Besta® RTOS devices.
Loading...
Searching...
No Matches
ui_appview_s Struct Reference

App view struct. More...

#include <appview.h>

Data Fields

ui_component_t component
 The inherited component struct.
unsigned short item_count
 Total number of entries. Used for paging.
unsigned short first_visible_item
 Absolute index of the first entry on the current page.
short selected_page_slot
 Current selection on the page.
short unk_0x3a
 Unknown. Seems unused.
short item_width
 Computed width of the item (including the label and the icon).
short item_height
 Computed height of the item (including the label and the icon).
unsigned short icon_width
 Computed width of specifically the icon.
unsigned short icon_height
 Computed height of specifically the icon.
short horizontal_gap
 Computed horizontal gap size.
short vertical_gap
 Computed vertical gap size.
unsigned short column_count
 Computed number of columns.
unsigned short page_capacity
 Computed page capacity (max. 12).
ui_appview_item_t * page_items
 Pointer to array of page items.
unsigned short reload_pending
 Whether to refresh the page before draw/input.
unsigned short appview_flags
 Flags.
unsigned short font_type
 Font type.
short unk_0x56
 Unknown. Seems unused.
void(*) on_relayout (ui_appview_t *self)
 Relayout callback.
void(*) on_load_page (ui_appview_t *self)
 Load page callback.
void(*) on_draw_item (ui_appview_t *self, short x, short y, unsigned short page_slot)
 Draw item callback.
void(*) on_draw_icon (ui_appview_t *self, short x0, short y0, short x1, short y1, unsigned short page_slot)
 Draw icon callback.
void(*) on_draw_label (ui_appview_t *self, short x0, short y0, short x1, short y1, unsigned short page_slot)
 Draw label callback.

Detailed Description

App view struct.

Field Documentation

◆ appview_flags

unsigned short ui_appview_s::appview_flags

Flags.

See also
ui_appview_flag_e

◆ component

ui_component_t ui_appview_s::component

The inherited component struct.

◆ font_type

unsigned short ui_appview_s::font_type

Font type.

See also
font_type_e

◆ on_draw_icon

void(*) ui_appview_s::on_draw_icon(ui_appview_t *self, short x0, short y0, short x1, short y1, unsigned short page_slot)

Draw icon callback.

Parameters
x0X coordinate of the top-left corner, in pixels (inclusive).
y0Y coordinate of the top-left corner, in pixels (inclusive).
x1X coordinate of the bottom-right corner, in pixels (inclusive).
y1Y coordinate of the bottom-right corner, in pixels (inclusive).
page_slotRelative item number on the page.

◆ on_draw_item

void(*) ui_appview_s::on_draw_item(ui_appview_t *self, short x, short y, unsigned short page_slot)

Draw item callback.

Parameters
xX coordinate of the top-left corner, in pixels (inclusive).
yY coordinate of the top-left corner, in pixels (inclusive).
page_slotRelative item number on the page.
Returns
None.

◆ on_draw_label

void(*) ui_appview_s::on_draw_label(ui_appview_t *self, short x0, short y0, short x1, short y1, unsigned short page_slot)

Draw label callback.

Parameters
x0X coordinate of the top-left corner, in pixels (inclusive).
y0Y coordinate of the top-left corner, in pixels (inclusive).
x1X coordinate of the bottom-right corner, in pixels (inclusive).
y1Y coordinate of the bottom-right corner, in pixels (inclusive).
page_slotRelative item number on the page.

◆ on_load_page

void(*) ui_appview_s::on_load_page(ui_appview_t *self)

Load page callback.

Override this to populate the page.

Returns
None.

◆ on_relayout

void(*) ui_appview_s::on_relayout(ui_appview_t *self)

Relayout callback.

Returns
None.

◆ selected_page_slot

short ui_appview_s::selected_page_slot

Current selection on the page.

Set to -1 when nothing is selected.

◆ unk_0x3a

short ui_appview_s::unk_0x3a

Unknown. Seems unused.

◆ unk_0x56

short ui_appview_s::unk_0x56

Unknown. Seems unused.


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