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
Copy file name to clipboardExpand all lines: imgui_internal.h
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1893,7 +1893,7 @@ struct ImGuiTabBar
1893
1893
#defineIMGUI_TABLE_MAX_COLUMNS64// sizeof(ImU64) * 8. This is solely because we frequently encode columns set in a ImU64.
1894
1894
#defineIMGUI_TABLE_MAX_DRAW_CHANNELS (4 + 64 * 2) // See TableUpdateDrawChannels()
1895
1895
1896
-
// [Internal] sizeof() ~ 100
1896
+
// [Internal] sizeof() ~ 104
1897
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).
1898
1898
structImGuiTableColumn
1899
1899
{
@@ -1910,6 +1910,7 @@ struct ImGuiTableColumn
1910
1910
float WidthGiven; // Final/actual width visible == (MaxX - MinX), locked in TableUpdateLayout(). May be > WidthRequest to honor minimum width, may be < WidthRequest to honor shrinking columns down in tight space.
1911
1911
float WorkMinX; // Start position for the frame, currently ~(MinX + CellPaddingX)
1912
1912
float WorkMaxX;
1913
+
float ItemWidth;
1913
1914
float ContentMaxXFrozen; // Contents maximum position for frozen rows (apart from headers), from which we can infer content width.
1914
1915
float ContentMaxXUnfrozen;
1915
1916
float ContentMaxXHeadersUsed; // Contents maximum position for headers rows (regardless of freezing). TableHeader() automatically softclip itself + report ideal desired size, to avoid creating extraneous draw calls
@@ -2009,7 +2010,9 @@ struct ImGuiTable
2009
2010
ImRect HostBackupParentWorkRect; // Backup of InnerWindow->ParentWorkRect at the end of BeginTable()
2010
2011
ImRect HostBackupClipRect; // Backup of InnerWindow->ClipRect during PushTableBackground()/PopTableBackground()
2011
2012
ImVec2 HostBackupCursorMaxPos; // Backup of InnerWindow->DC.CursorMaxPos at the end of BeginTable()
2012
-
ImVec1 HostBackupColumnsOffset; // Backup of OuterWindow->ColumnsOffset at the end of BeginTable()
2013
+
ImVec1 HostBackupColumnsOffset; // Backup of OuterWindow->DC.ColumnsOffset at the end of BeginTable()
2014
+
float HostBackupItemWidth; // Backup of OuterWindow->DC.ItemWidth at the end of BeginTable()
2015
+
int HostBackupItemWidthStackSize;// Backup of OuterWindow->DC.ItemWidthStack.Size at the end of BeginTable()
2013
2016
ImGuiWindow* OuterWindow; // Parent window for the table
2014
2017
ImGuiWindow* InnerWindow; // Window holding the table data (== OuterWindow or a child window)
0 commit comments