mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	Tab Bar: Made it possible to append to an existing tab bar by calling BeginTabBar()/EndTabBar() again.
This commit is contained in:
		| @@ -1754,7 +1754,8 @@ struct ImGuiTabBar | ||||
|     int                 CurrFrameVisible; | ||||
|     int                 PrevFrameVisible; | ||||
|     ImRect              BarRect; | ||||
|     float               LastTabContentHeight;   // Record the height of contents submitted below the tab bar | ||||
|     float               CurrTabsContentsHeight; | ||||
|     float               PrevTabsContentsHeight; // Record the height of contents submitted below the tab bar | ||||
|     float               WidthAllTabs;           // Actual width of all tabs (locked during layout) | ||||
|     float               WidthAllTabsIdeal;      // Ideal width if all tabs were visible and not clipped | ||||
|     float               ScrollingAnim; | ||||
| @@ -1770,8 +1771,9 @@ struct ImGuiTabBar | ||||
|     bool                WantLayout; | ||||
|     bool                VisibleTabWasSubmitted; | ||||
|     bool                TabsAddedNew;           // Set to true when a new tab item or button has been added to the tab bar during last frame | ||||
|     short               LastTabItemIdx;         // Index of last BeginTabItem() tab for use by EndTabItem()  | ||||
|     short               LastTabItemIdx;         // Index of last BeginTabItem() tab for use by EndTabItem() | ||||
|     ImVec2              FramePadding;           // style.FramePadding locked at the time of BeginTabBar() | ||||
|     ImVec2              TabsContentsMin; | ||||
|     ImGuiTextBuffer     TabsNames;              // For non-docking tab bar we re-append names in a contiguous buffer. | ||||
|  | ||||
|     ImGuiTabBar(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user