mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	Comments, clarifying ClosePopupsOverWindow().
This commit is contained in:
		| @@ -1127,10 +1127,10 @@ struct ImGuiContext | ||||
|     ImGuiStorage            WindowsById;                        // Map window's ImGuiID to ImGuiWindow* | ||||
|     int                     WindowsActiveCount;                 // Number of unique windows submitted by frame | ||||
|     ImGuiWindow*            CurrentWindow;                      // Window being drawn into | ||||
|     ImGuiWindow*            HoveredWindow;                      // Will catch mouse inputs | ||||
|     ImGuiWindow*            HoveredRootWindow;                  // Will catch mouse inputs (for focus/move only) | ||||
|     ImGuiWindow*            HoveredWindow;                      // Window the mouse is hovering. Will typically catch mouse inputs. | ||||
|     ImGuiWindow*            HoveredRootWindow;                  // == HoveredWindow ? HoveredWindow->RootWindow : NULL, merely a shortcut to avoid null test in some situation. | ||||
|     ImGuiWindow*            HoveredWindowUnderMovingWindow;     // Hovered window ignoring MovingWindow. Only set if MovingWindow is set. | ||||
|     ImGuiWindow*            MovingWindow;                       // Track the window we clicked on (in order to preserve focus). The actually window that is moved is generally MovingWindow->RootWindow. | ||||
|     ImGuiWindow*            MovingWindow;                       // Track the window we clicked on (in order to preserve focus). The actual window that is moved is generally MovingWindow->RootWindow. | ||||
|     ImGuiWindow*            WheelingWindow;                     // Track the window we started mouse-wheeling on. Until a timer elapse or mouse has moved, generally keep scrolling the same window even if during the course of scrolling the mouse ends up hovering a child window. | ||||
|     ImVec2                  WheelingWindowRefMousePos; | ||||
|     float                   WheelingWindowTimer; | ||||
| @@ -1632,7 +1632,7 @@ struct IMGUI_API ImGuiWindow | ||||
|     ImDrawList*             DrawList;                           // == &DrawListInst (for backward compatibility reason with code using imgui_internal.h we keep this a pointer) | ||||
|     ImDrawList              DrawListInst; | ||||
|     ImGuiWindow*            ParentWindow;                       // If we are a child _or_ popup window, this is pointing to our parent. Otherwise NULL. | ||||
|     ImGuiWindow*            RootWindow;                         // Point to ourself or first ancestor that is not a child window. | ||||
|     ImGuiWindow*            RootWindow;                         // Point to ourself or first ancestor that is not a child window == Top-level window. | ||||
|     ImGuiWindow*            RootWindowForTitleBarHighlight;     // Point to ourself or first ancestor which will display TitleBgActive color when this window is active. | ||||
|     ImGuiWindow*            RootWindowForNav;                   // Point to ourself or first ancestor which doesn't have the NavFlattened flag. | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user