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

Control menu widget constructor and methods. More...

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.

Detailed Description

Control menu widget constructor and methods.

Function Documentation

◆ CreateControlMenu()

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.

Syscall Number
0x10153
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.
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).
entriesMenu entry array.
titleTitle of the pop-up menu.
default_indexDefault selected item index.
layout_modeLayout mode.
selection_policySelection policy.
Returns
The created control menu widget.

◆ PCONTROLMENU_draw()

void PCONTROLMENU_draw ( ui_controlmenu_t * self)

Default draw callback of control menu.

Syscall Number
0x10164
Parameters
selfThe control menu object.
Returns
None.

◆ PCONTROLMENU_handleEvent()

void PCONTROLMENU_handleEvent ( ui_controlmenu_t * self,
ui_event_t * event )

Default event handler of control menu.

Syscall Number
0x10165
Parameters
selfThe control menu object.
eventThe incoming event.
Returns
None.