Skip to content

Struct SYN_Menu

ClassList > SYN_Menu

Menu runtime state — navigation stack and rendering.

  • #include <syn_menu.h>

Public Attributes

Type Name
const SYN_MenuItem * current
uint8_t depth
bool editing
SYN_MenuRenderFn render
void * render_ctx
const SYN_MenuItem * root
uint8_t selected
const SYN_MenuItem * stack
uint8_t stack_sel

Public Attributes Documentation

variable current

const SYN_MenuItem* SYN_Menu::current;

Current menu level (submenu)


variable depth

uint8_t SYN_Menu::depth;

Current depth (0 = root)


variable editing

bool SYN_Menu::editing;

In value-edit mode?


variable render

SYN_MenuRenderFn SYN_Menu::render;

Called after state changes


variable render_ctx

void* SYN_Menu::render_ctx;

Context for render callback


variable root

const SYN_MenuItem* SYN_Menu::root;

Root menu item (submenu)


variable selected

uint8_t SYN_Menu::selected;

Currently highlighted index


variable stack

const SYN_MenuItem* SYN_Menu::stack[SYN_MENU_MAX_DEPTH];

Parent chain


variable stack_sel

uint8_t SYN_Menu::stack_sel[SYN_MENU_MAX_DEPTH];

Selection idx



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