Muteki
EABI code execution on Besta® RTOS devices.
Loading...
Searching...
No Matches
menufield.h File Reference

Menu field widget constructor and methods. More...

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.

Detailed Description

Menu field widget constructor and methods.

Function Documentation

◆ CreateMenuField()

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.

Syscall Number
0x10154
Parameters
tagComponent 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.
xX coordinate of the top-left corner, in pixels (inclusive).
yY coordinate of the top-left corner, in pixels (inclusive).
[in,out]index_pBorrowed 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.
entriesMenu entry array.
flagsMenu field flags.
Returns
The created menu field widget.
See also
ui_menufield_flag_e

◆ PMENUFIELD_draw()

void PMENUFIELD_draw ( ui_menufield_t * self)

Default draw callback of menu field.

Syscall Number
0x10162
Parameters
selfThe menu field object.
Returns
None.

◆ PMENUFIELD_handleEvent()

void PMENUFIELD_handleEvent ( ui_menufield_t * self,
ui_event_t * event )

Default event handler of menu field.

Syscall Number
0x10163
Parameters
selfThe menu field object.
eventThe incoming event.
Returns
None.