Skip to content

Struct SYN_MenuItem

ClassList > 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

uint8_t SYN_MenuItem::action;

SYN_MenuAction


variable callback

struct SYN_MenuItem SYN_MenuItem::callback;

SYN_MENU_ACTION_CALLBACK


variable children

const struct SYN_MenuItem* SYN_MenuItem::children;

Child items array


variable count

uint8_t SYN_MenuItem::count;

Number of children


variable ctx

void* SYN_MenuItem::ctx;

Callback context


variable func

void(* SYN_MenuItem::func) (void *ctx);

Callback function


variable label

const char* SYN_MenuItem::label;

Display text


variable submenu

struct SYN_MenuItem SYN_MenuItem::submenu;

SYN_MENU_ACTION_SUBMENU


variable toggle

bool* SYN_MenuItem::toggle;

SYN_MENU_ACTION_TOGGLE


variable u

union SYN_MenuItem SYN_MenuItem::u;

Action-specific data


variable value_cfg

SYN_MenuValueCfg SYN_MenuItem::value_cfg;

SYN_MENU_ACTION_VALUE



The documentation for this class was generated from the following file src/syntropic/ui/syn_menu.h