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

Method SetCursorPos

include/imgui/imgui.cpp:11532–11538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11530}
11531
11532void ImGui::SetCursorPos(const ImVec2& local_pos)
11533{
11534 ImGuiWindow* window = GetCurrentWindow();
11535 window->DC.CursorPos = window->Pos - window->Scroll + local_pos;
11536 //window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos);
11537 window->DC.IsSetPos = true;
11538}
11539
11540void ImGui::SetCursorPosX(float x)
11541{

Callers

nothing calls this directly

Calls 1

GetCurrentWindowFunction · 0.85

Tested by

no test coverage detected