TabBar: TabItem() now reacts to SetNextItemWidth() and SetNextItemOpen(true). (#5262)

This commit is contained in:
ocornut
2022-06-21 16:20:01 +02:00
parent d3fd2630b7
commit 4b97296148
3 changed files with 29 additions and 15 deletions

View File

@ -2184,6 +2184,7 @@ struct ImGuiTabItem
float Offset; // Position relative to beginning of tab
float Width; // Width currently displayed
float ContentWidth; // Width of label, stored during BeginTabItem() call
float RequestedWidth; // Width optionally requested by caller, -1.0f is unused
ImS32 NameOffset; // When Window==NULL, offset to name within parent ImGuiTabBar::TabsNames
ImS16 BeginOrder; // BeginTabItem() order, used to re-order tabs after toggling ImGuiTabBarFlags_Reorderable
ImS16 IndexDuringLayout; // Index only used during TabBarLayout()