mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 05:01:05 +01:00 
			
		
		
		
	Nav: Added NavJustNavigatedId internal info to record when we land on a given item after a navigation request, useful for various algorithms (currently looking at range selection stuff) (#787)
This commit is contained in:
		| @@ -458,7 +458,8 @@ struct ImGuiContext | ||||
|     ImGuiWindow*            NavWindow;                          // Nav/focused window for navigation | ||||
|     ImGuiID                 NavId;                              // Nav/focused item for navigation | ||||
|     ImGuiID                 NavActivateId, NavInputId;          // ~~ IsKeyPressedMap(ImGuiKey_NavActive) ? NavId : 0, etc. (to make widget code terser) | ||||
|     ImGuiID                 NavTabbedId;                        //  | ||||
|     ImGuiID                 NavJustTabbedId;                    // Just tabbed to this id. | ||||
|     ImGuiID                 NavJustNavigatedId;                 // Just navigated to this id (result of a successfully MoveRequest) | ||||
|     ImRect                  NavScoringRectScreen;               // Rectangle used for scoring, in screen space. Based of window->DC.NavRefRectRel[], modified for directional navigation scoring. | ||||
|     ImGuiWindow*            NavWindowingTarget; | ||||
|     float                   NavWindowingDisplayAlpha; | ||||
| @@ -571,7 +572,7 @@ struct ImGuiContext | ||||
|         SettingsDirtyTimer = 0.0f; | ||||
|  | ||||
|         NavWindow = NULL; | ||||
|         NavId = NavActivateId = NavInputId = NavTabbedId = 0; | ||||
|         NavId = NavActivateId = NavInputId = NavJustTabbedId = 0; | ||||
|         NavScoringRectScreen = ImRect(); | ||||
|         NavWindowingTarget = NULL; | ||||
|         NavWindowingDisplayAlpha = 0.0f; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user