MCPcopy Create free account
hub / github.com/clementgallet/libTAS / DebugDrawCursorPos

Method DebugDrawCursorPos

src/external/imgui/imgui.cpp:14971–14978  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

14969
14970// Draw a small cross at current CursorPos in current window's DrawList
14971void ImGui::DebugDrawCursorPos(ImU32 col)
14972{
14973 ImGuiContext& g = *GImGui;
14974 ImGuiWindow* window = g.CurrentWindow;
14975 ImVec2 pos = window->DC.CursorPos;
14976 window->DrawList->AddLine(ImVec2(pos.x, pos.y - 3.0f), ImVec2(pos.x, pos.y + 4.0f), col, 1.0f);
14977 window->DrawList->AddLine(ImVec2(pos.x - 3.0f, pos.y), ImVec2(pos.x + 4.0f, pos.y), col, 1.0f);
14978}
14979
14980// Draw a 10px wide rectangle around CurposPos.x using Line Y1/Y2 in current window's DrawList
14981void ImGui::DebugDrawLineExtents(ImU32 col)

Callers

nothing calls this directly

Calls 2

ImVec2Function · 0.85
AddLineMethod · 0.80

Tested by

no test coverage detected