MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / DebugDrawCursorPos

Method DebugDrawCursorPos

3rdparty/imgui/src/imgui.cpp:17975–17982  ·  view source on GitHub ↗

Draw a small cross at current CursorPos in current window's DrawList

Source from the content-addressed store, hash-verified

17973
17974// Draw a small cross at current CursorPos in current window's DrawList
17975void ImGui::DebugDrawCursorPos(ImU32 col)
17976{
17977 ImGuiContext& g = *GImGui;
17978 ImGuiWindow* window = g.CurrentWindow;
17979 ImVec2 pos = window->DC.CursorPos;
17980 window->DrawList->AddLineV(pos.x, pos.y - 3.0f, pos.y + 4.0f, col, 1.0f);
17981 window->DrawList->AddLineH(pos.x - 3.0f, pos.x + 4.0f, pos.y, col, 1.0f);
17982}
17983
17984// Draw a 10px wide rectangle around CurposPos.x using Line Y1/Y2 in current window's DrawList
17985void ImGui::DebugDrawLineExtents(ImU32 col)

Callers

nothing calls this directly

Calls 2

AddLineVMethod · 0.80
AddLineHMethod · 0.80

Tested by

no test coverage detected