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

Method SetCursorPosX

include/imgui/imgui.cpp:11540–11546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11538}
11539
11540void ImGui::SetCursorPosX(float x)
11541{
11542 ImGuiWindow* window = GetCurrentWindow();
11543 window->DC.CursorPos.x = window->Pos.x - window->Scroll.x + x;
11544 //window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPos.x);
11545 window->DC.IsSetPos = true;
11546}
11547
11548void ImGui::SetCursorPosY(float y)
11549{

Callers

nothing calls this directly

Calls 1

GetCurrentWindowFunction · 0.85

Tested by

no test coverage detected