MCPcopy Create free account
hub / github.com/RenderKit/embree / WindowRectAbsToRel

Function WindowRectAbsToRel

tutorials/common/imgui/imgui_internal.h:2714–2714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2712 IMGUI_API void SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond = 0);
2713 IMGUI_API void SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const ImVec2& size);
2714 inline ImRect WindowRectAbsToRel(ImGuiWindow* window, const ImRect& r) { ImVec2 off = window->DC.CursorStartPos; return ImRect(r.Min.x - off.x, r.Min.y - off.y, r.Max.x - off.x, r.Max.y - off.y); }
2715 inline ImRect WindowRectRelToAbs(ImGuiWindow* window, const ImRect& r) { ImVec2 off = window->DC.CursorStartPos; return ImRect(r.Min.x + off.x, r.Min.y + off.y, r.Max.x + off.x, r.Max.y + off.y); }
2716
2717 // Windows: Display Order and Focus Order

Callers 8

GetIDFromRectangleMethod · 0.85
SetItemDefaultFocusMethod · 0.85
SetFocusIDMethod · 0.85
NavApplyItemToResultMethod · 0.85
NavProcessItemMethod · 0.85
SelectableMethod · 0.85

Calls 1

ImRectFunction · 0.70

Tested by

no test coverage detected