Table Functions
Full-featured replacement for old Columns API. See demo for usage examples.BeginTable
EndTable() if this returns true.
const char*
Unique identifier for the table
int
Number of columns
ImGuiTableFlags
default:"0"
Table flags (see ImGuiTableFlags_)
const ImVec2&
default:"ImVec2(0.0f, 0.0f)"
Outer size of table
float
default:"0.0f"
Inner width of table (for horizontal scrolling)
bool
True if table is visible and can be appended to
EndTable
BeginTable() returns true.
TableNextRow
ImGuiTableRowFlags
default:"0"
Row flags (see ImGuiTableRowFlags_)
float
default:"0.0f"
Minimum row height (includes CellPadding.y * 2.0f)
TableNextColumn
bool
True when column is visible
TableSetColumnIndex
int
Column index (0-based)
bool
True when column is visible
Table Setup
TableSetupColumn
const char*
Column label (also used as ID unless user_id is provided)
ImGuiTableColumnFlags
default:"0"
Column flags (see ImGuiTableColumnFlags_)
float
default:"0.0f"
Initial width (for fixed columns) or weight (for stretch columns)
ImGuiID
default:"0"
Optional user ID
TableSetupScrollFreeze
int
Number of columns to freeze
int
Number of rows to freeze
TableHeadersRow
TableSetupColumn() and submit context menu.
TableHeader
const char*
Header label
TableAngledHeadersRow
ImGuiTableColumnFlags_AngledHeader flag. Must be first row.
Table Query
TableGetSortSpecs
ImGuiTableSortSpecs*
Sort specifications or NULL
TableGetColumnCount
BeginTable()).
int
Number of columns
TableGetColumnIndex
int
Current column index
TableGetRowIndex
int
Current row index
TableGetColumnName
int
default:"-1"
Column index (-1 = current column)
const char*
Column name or empty string
TableGetColumnFlags
int
default:"-1"
Column index (-1 = current column)
ImGuiTableColumnFlags
Column flags
TableSetColumnEnabled
int
Column index
bool
Enabled state
TableGetHoveredColumn
int
Hovered column index or -1
TableSetBgColor
ImGuiTableBgTarget
Target type (see ImGuiTableBgTarget_)
ImU32
RGBA color packed as 32-bit
int
default:"-1"
Column index (-1 = current column)