MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / GetWindowRect

Method GetWindowRect

include/imgui/imgui.cpp:16660–16672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16658 }
16659
16660 static ImRect GetWindowRect(ImGuiWindow* window, int rect_type)
16661 {
16662 if (rect_type == WRT_OuterRect) { return window->Rect(); }
16663 else if (rect_type == WRT_OuterRectClipped) { return window->OuterRectClipped; }
16664 else if (rect_type == WRT_InnerRect) { return window->InnerRect; }
16665 else if (rect_type == WRT_InnerClipRect) { return window->InnerClipRect; }
16666 else if (rect_type == WRT_WorkRect) { return window->WorkRect; }
16667 else if (rect_type == WRT_Content) { ImVec2 min = window->InnerRect.Min - window->Scroll + window->WindowPadding; return ImRect(min, min + window->ContentSize); }
16668 else if (rect_type == WRT_ContentIdeal) { ImVec2 min = window->InnerRect.Min - window->Scroll + window->WindowPadding; return ImRect(min, min + window->ContentSizeIdeal); }
16669 else if (rect_type == WRT_ContentRegionRect) { return window->ContentRegionRect; }
16670 IM_ASSERT(0);
16671 return ImRect();
16672 }
16673 };
16674
16675#ifdef IMGUI_DEBUG_HIGHLIGHT_ALL_ID_CONFLICTS

Callers

nothing calls this directly

Calls 1

ImRectFunction · 0.70

Tested by

no test coverage detected