|
Muteki
EABI code execution on Besta® RTOS devices.
|
Control menu widget constructor and methods. More...
#include "../types/controlmenu.h"Go to the source code of this file.
Functions | |
| ui_controlmenu_t * | CreateControlMenu (unsigned short tag, short x0, short y0, short x1, short y1, const ui_menu_entry_t *entries, const UTF16 *title, unsigned short default_index, int layout_mode, unsigned short selection_policy) |
| Create a control menu widget. | |
| void | PCONTROLMENU_draw (ui_controlmenu_t *self) |
| Default draw callback of control menu. | |
| void | PCONTROLMENU_handleEvent (ui_controlmenu_t *self, ui_event_t *event) |
| Default event handler of control menu. | |
Control menu widget constructor and methods.
| ui_controlmenu_t * CreateControlMenu | ( | unsigned short | tag, |
| short | x0, | ||
| short | y0, | ||
| short | x1, | ||
| short | y1, | ||
| const ui_menu_entry_t * | entries, | ||
| const UTF16 * | title, | ||
| unsigned short | default_index, | ||
| int | layout_mode, | ||
| unsigned short | selection_policy ) |
Create a control menu widget.
| tag | Component tag. Can be used to distinguish components under some circumstances (like when sharing a callback with another component, or looking up an item with GetDeskItem()). Does not need to be unique. Usually will be set by AllocBlock() after the memory was allocated. |
| 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). |
| entries | Menu entry array. |
| title | Title of the pop-up menu. |
| default_index | Default selected item index. |
| layout_mode | Layout mode. |
| selection_policy | Selection policy. |
| void PCONTROLMENU_draw | ( | ui_controlmenu_t * | self | ) |
Default draw callback of control menu.
| self | The control menu object. |
| void PCONTROLMENU_handleEvent | ( | ui_controlmenu_t * | self, |
| ui_event_t * | event ) |
Default event handler of control menu.
| self | The control menu object. |
| event | The incoming event. |