Struct SYN_MenuItem¶
Menu item — label + action type + union payload.
#include <syn_menu.h>
Public Attributes¶
| Type | Name |
|---|---|
| uint8_t | action |
| struct SYN_MenuItem | callback |
| const struct SYN_MenuItem * | children |
| uint8_t | count |
| void * | ctx |
| void(* | func |
| const char * | label |
| struct SYN_MenuItem | submenu |
| bool * | toggle |
| union SYN_MenuItem | u |
| SYN_MenuValueCfg | value_cfg |
Public Attributes Documentation¶
variable action¶
SYN_MenuAction
variable callback¶
SYN_MENU_ACTION_CALLBACK
variable children¶
Child items array
variable count¶
Number of children
variable ctx¶
Callback context
variable func¶
Callback function
variable label¶
Display text
variable submenu¶
SYN_MENU_ACTION_SUBMENU
variable toggle¶
SYN_MENU_ACTION_TOGGLE
variable u¶
Action-specific data
variable value_cfg¶
SYN_MENU_ACTION_VALUE
The documentation for this class was generated from the following file src/syntropic/ui/syn_menu.h