MCPcopy Create free account
hub / github.com/cinder/Cinder / GetWindowRect

Method GetWindowRect

src/imgui/imgui.cpp:16238–16250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16236 }
16237
16238 static ImRect GetWindowRect(ImGuiWindow* window, int rect_type)
16239 {
16240 if (rect_type == WRT_OuterRect) { return window->Rect(); }
16241 else if (rect_type == WRT_OuterRectClipped) { return window->OuterRectClipped; }
16242 else if (rect_type == WRT_InnerRect) { return window->InnerRect; }
16243 else if (rect_type == WRT_InnerClipRect) { return window->InnerClipRect; }
16244 else if (rect_type == WRT_WorkRect) { return window->WorkRect; }
16245 else if (rect_type == WRT_Content) { ImVec2 min = window->InnerRect.Min - window->Scroll + window->WindowPadding; return ImRect(min, min + window->ContentSize); }
16246 else if (rect_type == WRT_ContentIdeal) { ImVec2 min = window->InnerRect.Min - window->Scroll + window->WindowPadding; return ImRect(min, min + window->ContentSizeIdeal); }
16247 else if (rect_type == WRT_ContentRegionRect) { return window->ContentRegionRect; }
16248 IM_ASSERT(0);
16249 return ImRect();
16250 }
16251 };
16252
16253#ifdef IMGUI_DEBUG_HIGHLIGHT_ALL_ID_CONFLICTS

Callers

nothing calls this directly

Calls 2

ImRectFunction · 0.50
RectMethod · 0.45

Tested by

no test coverage detected