Struct SYN_IMGUI_Layout¶
Auto-layout state. Managed by syn_imgui_layout_begin/end. More...
#include <syn_imgui.h>
Public Attributes¶
| Type | Name |
|---|---|
| int16_t | cx |
| int16_t | cy |
| bool | in_layout |
| int16_t | origin_x |
| int16_t | prev_row_h |
| int16_t | row_h |
| int16_t | row_height |
| int | row_item_idx |
| int | row_items |
| int16_t | row_widths |
| int16_t | row_x |
| int16_t | row_y |
| bool | same_line |
| int16_t | width |
Detailed Description¶
When active (in_layout == true) and a widget receives x=0 y=0 w=0 h=0, it uses the cursor position and default sizes from this struct instead. Widgets that use the cursor advance it automatically.
Public Attributes Documentation¶
variable cx¶
Cursor X (left edge of next widget)
variable cy¶
Cursor Y (top edge of next widget)
variable in_layout¶
True while between layout_begin / layout_end
variable origin_x¶
Left margin for new rows
variable prev_row_h¶
Height of current row before layout advancement
variable row_h¶
Height of tallest widget in the current row
variable row_height¶
Forced row height (0 = auto)
variable row_item_idx¶
Index of next column to consume
variable row_items¶
Number of columns in current row (0 = default)
variable row_widths¶
Column widths
variable row_x¶
X position of end of last resolved widget + spacing
variable row_y¶
Y position of current row start
variable same_line¶
True: next widget appends right, not new row
variable width¶
Default widget width (set in layout_begin)
The documentation for this class was generated from the following file src/syntropic/ui/syn_imgui.h