|
Muteki
EABI code execution on Besta® RTOS devices.
|
Menu field widget constructor and methods. More...
#include "../types/menufield.h"Go to the source code of this file.
Functions | |
| ui_menufield_t * | CreateMenuField (unsigned short tag, short x, short y, unsigned short *index_p, const ui_menu_entry_t *entries, unsigned short flags) |
| Create a menu field widget. | |
| void | PMENUFIELD_draw (ui_menufield_t *self) |
| Default draw callback of menu field. | |
| void | PMENUFIELD_handleEvent (ui_menufield_t *self, ui_event_t *event) |
| Default event handler of menu field. | |
Menu field widget constructor and methods.
| ui_menufield_t * CreateMenuField | ( | unsigned short | tag, |
| short | x, | ||
| short | y, | ||
| unsigned short * | index_p, | ||
| const ui_menu_entry_t * | entries, | ||
| unsigned short | flags ) |
Create a menu field 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. | |
| x | X coordinate of the top-left corner, in pixels (inclusive). | |
| y | Y coordinate of the top-left corner, in pixels (inclusive). | |
| [in,out] | index_p | Borrowed reference to a 16-bit integer that holds the index of the currently selected item. Must be valid across the entire lifespan of the widget. |
| entries | Menu entry array. | |
| flags | Menu field flags. |
| void PMENUFIELD_draw | ( | ui_menufield_t * | self | ) |
Default draw callback of menu field.
| self | The menu field object. |
| void PMENUFIELD_handleEvent | ( | ui_menufield_t * | self, |
| ui_event_t * | event ) |
Default event handler of menu field.
| self | The menu field object. |
| event | The incoming event. |