mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 21:21:06 +01:00 
			
		
		
		
	Added SetCursorPosX, SetCursorPosY shortcuts
This commit is contained in:
		
							
								
								
									
										12
									
								
								imgui.cpp
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								imgui.cpp
									
									
									
									
									
								
							| @@ -2461,6 +2461,18 @@ void SetCursorPos(const ImVec2& pos) | ||||
|     window->DC.CursorPos = window->Pos + pos; | ||||
| } | ||||
|  | ||||
| void SetCursorPosX(float x) | ||||
| { | ||||
|     ImGuiWindow* window = GetCurrentWindow(); | ||||
|     window->DC.CursorPos.x = window->Pos.x + x; | ||||
| } | ||||
|  | ||||
| void SetCursorPosY(float y) | ||||
| { | ||||
|     ImGuiWindow* window = GetCurrentWindow(); | ||||
|     window->DC.CursorPos.y = window->Pos.y + y; | ||||
| } | ||||
|  | ||||
| ImVec2 GetCursorScreenPos() | ||||
| { | ||||
|     ImGuiWindow* window = GetCurrentWindow(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user