You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tables: removed TableGetColumnIsVisible from public api, re-specced as TableGetColumnIsHidden() returning same flag as setter, clipper increase CurrentRow.
IMGUI_API voidEndTable(); // only call EndTable() if BeginTable() returns true!
684
684
IMGUI_API voidTableNextRow(ImGuiTableRowFlags row_flags = 0, float min_row_height = 0.0f); // append into the first cell of a new row.
685
-
IMGUI_API boolTableNextColumn(); // append into the next column (or first column of next row if currently in last column). Return false when column is not visible.
686
-
IMGUI_API boolTableSetColumnIndex(int column_n); // append into the specified column. Return false when column is not visible.
685
+
IMGUI_API boolTableNextColumn(); // append into the next column (or first column of next row if currently in last column). Return true when column is visible.
686
+
IMGUI_API boolTableSetColumnIndex(int column_n); // append into the specified column. Return true when column is visible.
687
687
IMGUI_API intTableGetColumnIndex(); // return current column index.
688
688
IMGUI_API intTableGetRowIndex(); // return current row index.
689
689
// Tables: Headers & Columns declaration
@@ -705,7 +705,6 @@ namespace ImGui
705
705
// Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable().
706
706
IMGUI_API intTableGetColumnCount(); // return number of columns (value passed to BeginTable)
707
707
IMGUI_API constchar* TableGetColumnName(int column_n = -1); // return "" if column didn't have a name declared by TableSetupColumn(). Pass -1 to use current column.
708
-
IMGUI_API boolTableGetColumnIsVisible(int column_n = -1); // return true if column is visible. Same value is also returned by TableNextColumn() and TableSetColumnIndex(). Pass -1 to use current column.
709
708
IMGUI_API boolTableGetColumnIsSorted(int column_n = -1); // return true if column is included in the sort specs. Rarely used, can be useful to tell if a data change should trigger resort. Equivalent to test ImGuiTableSortSpecs's ->ColumnsMask & (1 << column_n). Pass -1 to use current column.
710
709
IMGUI_API intTableGetHoveredColumn(); // return hovered column. return -1 when table is not hovered. return columns_count if the unused space at the right of visible columns is hovered.
711
710
IMGUI_API ImGuiTableSortSpecs* TableGetSortSpecs(); // get latest sort specs for the table (NULL if not sorting).
Copy file name to clipboardExpand all lines: imgui_internal.h
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1894,7 +1894,8 @@ struct ImGuiTabBar
1894
1894
#defineIMGUI_TABLE_MAX_DRAW_CHANNELS (4 + 64 * 2) // See TableUpdateDrawChannels()
1895
1895
1896
1896
// [Internal] sizeof() ~ 104
1897
-
// We use the terminology "Visible" to refer to a column that is not Hidden by user or settings. However it may still be out of view and clipped (see IsClipped).
1897
+
// We use the terminology "Visible" to refer to a columns that are not Hidden by user or settings. However it may still be out of view and clipped (and IsClipped would be set).
1898
+
// This is in contrast with some user-facing api such as IsItemVisible() / IsRectVisible() which use "Visible" to mean "not clipped".
1898
1899
structImGuiTableColumn
1899
1900
{
1900
1901
ImRect ClipRect; // Clipping rectangle for the column
0 commit comments