str_idString identifier hashed with the current ID stack to distinguish this item or scope.
columnsNumber of columns to create or freeze.
flagsImGuiTableFlags options controlling this operation; combine compatible flag bits with |.
True when the table is visible and rows may be submitted. Call EndTable() only when true; on false skip all table commands for this scope.
Tables replace the legacy Columns API. See Demo > Tables, imgui_tables.cpp,
ImGuiTableFlags, and ImGuiTableColumnFlags for examples and options.
BeginTable() and skip the table if it returns false.TableSetupColumn() and freeze rows or
columns with TableSetupScrollFreeze().TableHeadersRow(); it uses the declared column names.EndTable() only when BeginTable() returned
true.Select the first cell explicitly, unlike the old Columns API.
TableNextColumn() automatically wraps to the next row. These sequences are
valid:
TableNextRow() -> TableSetColumnIndex(0) -> Text("Hello 0") ->
TableSetColumnIndex(1) -> Text("Hello 1")
TableNextRow() -> TableNextColumn() -> Text("Hello 0") -> TableNextColumn()
-> Text("Hello 1")
TableNextColumn() -> Text("Hello 0") -> TableNextColumn() -> Text("Hello 1")
TableNextRow() -> Text("Hello 0") is invalid: without selecting a column,
the text will not appear.
The helper uses outer_size = (0, 0) and inner_width = 0.
Begin a table.