mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 05:01:05 +01:00 
			
		
		
		
	Renamed IsRectClipped to IsRectVisible for consistency. Note that return value is opposite! Kept inline redirection function (will obsolete)
This commit is contained in:
		
							
								
								
									
										7
									
								
								imgui.h
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								imgui.h
									
									
									
									
									
								
							| @@ -344,9 +344,9 @@ namespace ImGui | ||||
|     IMGUI_API ImVec2        GetItemRectMax();                                                   // " | ||||
|     IMGUI_API ImVec2        GetItemRectSize();                                                  // " | ||||
|     IMGUI_API bool          IsWindowFocused();                                                  // is current window focused (differentiate child windows from each others) | ||||
|     IMGUI_API bool          IsRootWindowFocused();                                              // is current root window focused | ||||
|     IMGUI_API bool          IsRootWindowFocused();                                              // is current root window focused (top parent window in case of child windows) | ||||
|     IMGUI_API bool          IsRootWindowOrAnyChildFocused();                                    // is current root window or any of its child (including current window) focused | ||||
|     IMGUI_API bool          IsRectClipped(const ImVec2& size);                                  // test if rectangle of given size starting from cursor pos is out of clipping region. to perform coarse clipping on user's side (as an optimization) | ||||
|     IMGUI_API bool          IsRectVisible(const ImVec2& size);                                  // test if rectangle of given size starting from cursor pos is visible (not clipped). to perform coarse clipping on user's side (as an optimization) | ||||
|     IMGUI_API bool          IsKeyDown(int key_index);                                           // key_index into the keys_down[512] array, imgui doesn't know the semantic of each entry | ||||
|     IMGUI_API bool          IsKeyPressed(int key_index, bool repeat = true);                    // " | ||||
|     IMGUI_API bool          IsMouseDown(int button); | ||||
| @@ -392,7 +392,8 @@ namespace ImGui | ||||
|     static inline bool      GetWindowIsFocused() { return ImGui::IsWindowFocused(); }   // OBSOLETE | ||||
|     static inline ImVec2    GetItemBoxMin() { return GetItemRectMin(); }    // OBSOLETE | ||||
|     static inline ImVec2    GetItemBoxMax() { return GetItemRectMax(); }    // OBSOLETE | ||||
|     static inline bool      IsClipped(const ImVec2& size) { return IsRectClipped(size); }   // OBSOLETE | ||||
|     static inline bool      IsClipped(const ImVec2& size) { return !IsRectVisible(size); }   // OBSOLETE | ||||
|     static inline bool      IsRectClipped(const ImVec2& size) { return !IsRectVisible(size); }   // OBSOLETE | ||||
|     static inline bool      IsMouseHoveringBox(const ImVec2& rect_min, const ImVec2& rect_max) { return IsMouseHoveringRect(rect_min, rect_max); }  // OBSOLETE | ||||
|  | ||||
| } // namespace ImGui | ||||
|   | ||||
		Reference in New Issue
	
	Block a user