mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 07:01:04 +01:00 
			
		
		
		
	Window: Shrink close button hit-testing region when it covers an abnormally high portion of the window visible area (e.g. when window is collapsed and moved in a corner)to facilitate moving the window away. (#3825)
This commit is contained in:
		@@ -448,6 +448,7 @@ struct IMGUI_API ImRect
 | 
			
		||||
    ImVec2      GetSize() const                     { return ImVec2(Max.x - Min.x, Max.y - Min.y); }
 | 
			
		||||
    float       GetWidth() const                    { return Max.x - Min.x; }
 | 
			
		||||
    float       GetHeight() const                   { return Max.y - Min.y; }
 | 
			
		||||
    float       GetArea() const                     { return (Max.x - Min.x) * (Max.y - Min.y); }
 | 
			
		||||
    ImVec2      GetTL() const                       { return Min; }                   // Top-left
 | 
			
		||||
    ImVec2      GetTR() const                       { return ImVec2(Max.x, Min.y); }  // Top-right
 | 
			
		||||
    ImVec2      GetBL() const                       { return ImVec2(Min.x, Max.y); }  // Bottom-left
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user