Skip to content

Struct SYN_IMGUI_Layout

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

int16_t SYN_IMGUI_Layout::cx;

Cursor X (left edge of next widget)


variable cy

int16_t SYN_IMGUI_Layout::cy;

Cursor Y (top edge of next widget)


variable in_layout

bool SYN_IMGUI_Layout::in_layout;

True while between layout_begin / layout_end


variable origin_x

int16_t SYN_IMGUI_Layout::origin_x;

Left margin for new rows


variable prev_row_h

int16_t SYN_IMGUI_Layout::prev_row_h;

Height of current row before layout advancement


variable row_h

int16_t SYN_IMGUI_Layout::row_h;

Height of tallest widget in the current row


variable row_height

int16_t SYN_IMGUI_Layout::row_height;

Forced row height (0 = auto)


variable row_item_idx

int SYN_IMGUI_Layout::row_item_idx;

Index of next column to consume


variable row_items

int SYN_IMGUI_Layout::row_items;

Number of columns in current row (0 = default)


variable row_widths

int16_t SYN_IMGUI_Layout::row_widths[SYN_IMGUI_MAX_ROW_COLS];

Column widths


variable row_x

int16_t SYN_IMGUI_Layout::row_x;

X position of end of last resolved widget + spacing


variable row_y

int16_t SYN_IMGUI_Layout::row_y;

Y position of current row start


variable same_line

bool SYN_IMGUI_Layout::same_line;

True: next widget appends right, not new row


variable width

int16_t SYN_IMGUI_Layout::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