mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
TabBar: TabItem() now reacts to SetNextItemWidth() and SetNextItemOpen(true). (#5262)
This commit is contained in:
parent
d3fd2630b7
commit
4b97296148
3 changed files with 29 additions and 15 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue