mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-25 02:24:24 +00:00
Tweak comments (#768)
This commit is contained in:
parent
a1521534ba
commit
b8397c2933
2 changed files with 4 additions and 4 deletions
|
|
@ -9116,10 +9116,10 @@ bool ImGui::IsRectVisible(const ImVec2& size)
|
|||
return window->ClipRect.Overlaps(ImRect(window->DC.CursorPos, window->DC.CursorPos + size));
|
||||
}
|
||||
|
||||
bool ImGui::IsRectVisible(const ImVec2& a, const ImVec2& b)
|
||||
bool ImGui::IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max)
|
||||
{
|
||||
ImGuiWindow* window = GetCurrentWindowRead();
|
||||
return window->ClipRect.Overlaps(ImRect(a, b));
|
||||
return window->ClipRect.Overlaps(ImRect(rect_min, rect_max));
|
||||
}
|
||||
|
||||
// Lock horizontal starting position + capture group bounding box into one "item" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue