|
Muteki
EABI code execution on Besta® RTOS devices.
|
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. | |
App view struct.
| unsigned short ui_appview_s::appview_flags |
Flags.
| ui_component_t ui_appview_s::component |
The inherited component struct.
| unsigned short ui_appview_s::font_type |
Font type.
| 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.
| x0 | X coordinate of the top-left corner, in pixels (inclusive). |
| y0 | Y coordinate of the top-left corner, in pixels (inclusive). |
| x1 | X coordinate of the bottom-right corner, in pixels (inclusive). |
| y1 | Y coordinate of the bottom-right corner, in pixels (inclusive). |
| page_slot | Relative item number on the page. |
| void(*) ui_appview_s::on_draw_item(ui_appview_t *self, short x, short y, unsigned short page_slot) |
Draw item callback.
| x | X coordinate of the top-left corner, in pixels (inclusive). |
| y | Y coordinate of the top-left corner, in pixels (inclusive). |
| page_slot | Relative item number on the page. |
| 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.
| x0 | X coordinate of the top-left corner, in pixels (inclusive). |
| y0 | Y coordinate of the top-left corner, in pixels (inclusive). |
| x1 | X coordinate of the bottom-right corner, in pixels (inclusive). |
| y1 | Y coordinate of the bottom-right corner, in pixels (inclusive). |
| page_slot | Relative item number on the page. |
| void(*) ui_appview_s::on_load_page(ui_appview_t *self) |
Load page callback.
Override this to populate the page.
| void(*) ui_appview_s::on_relayout(ui_appview_t *self) |
Relayout callback.
| short ui_appview_s::selected_page_slot |
Current selection on the page.
Set to -1 when nothing is selected.
| short ui_appview_s::unk_0x3a |
Unknown. Seems unused.
| short ui_appview_s::unk_0x56 |
Unknown. Seems unused.