Struct 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¶
ID of widget currently in "active/editing" mode
variable btn_back¶
Cancel / Back button pressed
variable btn_select¶
OK / Enter button pressed
variable disabled_depth¶
>0: widgets skip input, draw dimmed
variable enc_delta¶
Rotary encoder delta or +/- navigation count
variable focused_id¶
ID of currently highlighted/focused widget
variable gfx¶
Graphics context used for drawing
variable last_max_id¶
Total count of widgets from the previous frame
variable layout¶
Auto-layout cursor state
variable next_id¶
Transient counter for widgets in current frame
variable scroll¶
Scroll region state
variable style¶
Visual style — set via syn_imgui_set_style()
variable touch_down¶
True if screen is touched
variable touch_x¶
Touched X coordinate
variable touch_y¶
Touched Y coordinate
variable 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