Groups
Groups allow you to lock horizontal starting position and capture the whole group bounding box into one “item”. This lets you useIsItemHovered() or layout primitives such as SameLine() on the whole group.
BeginGroup
EndGroup
Group Usage Patterns
Horizontal Grouping with SameLine
Creating Compound Widgets
Capturing Group Dimensions
Legacy Columns API
Columns
Columns(1) or Columns() to disable columns.
int
Number of columns (1 to disable)
const char*
Optional identifier
bool
default:"true"
Draw border between columns
NextColumn
GetColumnIndex
int
Current column index
GetColumnWidth
int
default:"-1"
Column index (-1 for current column)
float
Column width in pixels
SetColumnWidth
int
Column index
float
New width in pixels
GetColumnOffset
int
default:"-1"
Column index (-1 for current column)
float
Column offset in pixels
SetColumnOffset
int
Column index
float
New offset in pixels
GetColumnsCount
int
Number of active columns