mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-30 20:51:06 +01:00 
			
		
		
		
	Docking: Added context menu option to hide the tab bar of single-window dock nodes, similar to Unreal. (#2109)
This commit is contained in:
		| @@ -769,22 +769,24 @@ struct ImGuiDockNode | ||||
|  | ||||
|     ImGuiWindow*            HostWindow; | ||||
|     ImGuiWindow*            VisibleWindow; | ||||
|     ImGuiDockNode*          OnlyNodeWithWindows;    // [Root node only] Set when there is a single visible node within the hierarchy | ||||
|     int                     LastFrameAlive;         // Last frame number the node was updated or kept alive explicitly with DockSpace() + ImGuiDockNodeFlags_KeepAliveOnly | ||||
|     int                     LastFrameActive;        // Last frame number the node was updated. | ||||
|     ImGuiID                 LastFocusedNodeID;      // [Root node only] Which of our child node (any ancestor in the hierarchy) was last focused. | ||||
|     ImGuiID                 SelectedTabID;          // [Tab node only] Which of our tab is selected. | ||||
|     ImGuiID                 WantCloseTabID;         // [Tab node only] Set when closing a specific tab. | ||||
|     ImGuiDockNode*          OnlyNodeWithWindows;        // [Root node only] Set when there is a single visible node within the hierarchy | ||||
|     int                     LastFrameAlive;             // Last frame number the node was updated or kept alive explicitly with DockSpace() + ImGuiDockNodeFlags_KeepAliveOnly | ||||
|     int                     LastFrameActive;            // Last frame number the node was updated. | ||||
|     ImGuiID                 LastFocusedNodeID;          // [Root node only] Which of our child node (any ancestor in the hierarchy) was last focused. | ||||
|     ImGuiID                 SelectedTabID;              // [Tab node only] Which of our tab is selected. | ||||
|     ImGuiID                 WantCloseTabID;             // [Tab node only] Set when closing a specific tab. | ||||
|     bool                    InitFromFirstWindowPosSize  :1; | ||||
|     bool                    InitFromFirstWindowViewport :1; | ||||
|     bool                    IsVisible           :1; // Set to false when the node is hidden (usually disabled as it has no active window) | ||||
|     bool                    IsDockSpace         :1; // Root node was created by a DockSpace() call. | ||||
|     bool                    IsCentralNode       :1; | ||||
|     bool                    HasCloseButton      :1; | ||||
|     bool                    HasCollapseButton   :1; | ||||
|     bool                    WantCloseAll        :1; // Set when closing all tabs at once. | ||||
|     bool                    WantLockSizeOnce    :1; | ||||
|     bool                    WantMouseMove       :1; // After a node extraction we need to transition toward moving the newly created host window | ||||
|     bool                    IsVisible               :1; // Set to false when the node is hidden (usually disabled as it has no active window) | ||||
|     bool                    IsDockSpace             :1; // Root node was created by a DockSpace() call. | ||||
|     bool                    IsCentralNode           :1; | ||||
|     bool                    IsHiddenTabBar          :1; | ||||
|     bool                    HasCloseButton          :1; | ||||
|     bool                    HasCollapseButton       :1; | ||||
|     bool                    WantCloseAll            :1; // Set when closing all tabs at once. | ||||
|     bool                    WantLockSizeOnce        :1; | ||||
|     bool                    WantMouseMove           :1; // After a node extraction we need to transition toward moving the newly created host window | ||||
|     bool                    WantHiddenTabBarToggle  :1; | ||||
|  | ||||
|     ImGuiDockNode(ImGuiID id); | ||||
|     ~ImGuiDockNode(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user