MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / WindowRectRelToAbs

Function WindowRectRelToAbs

KBotExt/imgui/imgui_internal.h:2795–2795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2793 IMGUI_API void SetWindowHiddendAndSkipItemsForCurrentFrame(ImGuiWindow* window);
2794 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); }
2795 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); }
2796 inline ImVec2 WindowPosRelToAbs(ImGuiWindow* window, const ImVec2& p) { ImVec2 off = window->DC.CursorStartPos; return ImVec2(p.x + off.x, p.y + off.y); }
2797
2798 // Windows: Display Order and Focus Order

Callers 6

CalcListClippingMethod · 0.85
NavUpdateMethod · 0.85

Calls 1

ImRectFunction · 0.70

Tested by

no test coverage detected