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

Function WindowPosRelToAbs

include/imgui/imgui_internal.h:3204–3204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3202 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); }
3203 inline ImVec2 WindowPosAbsToRel(ImGuiWindow* window, const ImVec2& p) { ImVec2 off = window->DC.CursorStartPos; return ImVec2(p.x - off.x, p.y - off.y); }
3204 inline ImVec2 WindowPosRelToAbs(ImGuiWindow* window, const ImVec2& p) { ImVec2 off = window->DC.CursorStartPos; return ImVec2(p.x + off.x, p.y + off.y); }
3205
3206 // Windows: Display Order and Focus Order
3207 IMGUI_API void FocusWindow(ImGuiWindow* window, ImGuiFocusRequestFlags flags = 0);

Callers 1

BeginBoxSelectMethod · 0.85

Calls 1

ImVec2Function · 0.85

Tested by

no test coverage detected