Skip to content

Struct SYN_IMGUI_Context

ClassList > SYN_IMGUI_Context

Immediate-mode GUI context — inputs, navigation, style, layout.

  • #include <syn_imgui.h>

Public Attributes

Type Name
uint16_t active_id
bool btn_back
bool btn_select
uint8_t disabled_depth
int32_t enc_delta
uint16_t focused_id
SYN_GfxContext gfx
uint16_t last_max_id
SYN_IMGUI_Layout layout
uint16_t next_id
SYN_IMGUI_Scroll scroll
SYN_IMGUI_Style style
bool touch_down
int16_t touch_x
int16_t touch_y
bool updated_focus

Public Attributes Documentation

variable active_id

uint16_t SYN_IMGUI_Context::active_id;

ID of widget currently in "active/editing" mode


variable btn_back

bool SYN_IMGUI_Context::btn_back;

Cancel / Back button pressed


variable btn_select

bool SYN_IMGUI_Context::btn_select;

OK / Enter button pressed


variable disabled_depth

uint8_t SYN_IMGUI_Context::disabled_depth;

>0: widgets skip input, draw dimmed


variable enc_delta

int32_t SYN_IMGUI_Context::enc_delta;

Rotary encoder delta or +/- navigation count


variable focused_id

uint16_t SYN_IMGUI_Context::focused_id;

ID of currently highlighted/focused widget


variable gfx

SYN_GfxContext SYN_IMGUI_Context::gfx;

Graphics context used for drawing


variable last_max_id

uint16_t SYN_IMGUI_Context::last_max_id;

Total count of widgets from the previous frame


variable layout

SYN_IMGUI_Layout SYN_IMGUI_Context::layout;

Auto-layout cursor state


variable next_id

uint16_t SYN_IMGUI_Context::next_id;

Transient counter for widgets in current frame


variable scroll

SYN_IMGUI_Scroll SYN_IMGUI_Context::scroll;

Scroll region state


variable style

SYN_IMGUI_Style SYN_IMGUI_Context::style;

Visual style — set via syn_imgui_set_style()


variable touch_down

bool SYN_IMGUI_Context::touch_down;

True if screen is touched


variable touch_x

int16_t SYN_IMGUI_Context::touch_x;

Touched X coordinate


variable touch_y

int16_t SYN_IMGUI_Context::touch_y;

Touched Y coordinate


variable updated_focus

bool SYN_IMGUI_Context::updated_focus;

Set when focused widget is visited



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