MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / DebugDrawCursorPos

Method DebugDrawCursorPos

KBotExt/imgui/imgui.cpp:14649–14656  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

14647
14648// Draw a small cross at current CursorPos in current window's DrawList
14649void ImGui::DebugDrawCursorPos(ImU32 col)
14650{
14651 ImGuiContext& g = *GImGui;
14652 ImGuiWindow* window = g.CurrentWindow;
14653 ImVec2 pos = window->DC.CursorPos;
14654 window->DrawList->AddLine(ImVec2(pos.x, pos.y - 3.0f), ImVec2(pos.x, pos.y + 4.0f), col, 1.0f);
14655 window->DrawList->AddLine(ImVec2(pos.x - 3.0f, pos.y), ImVec2(pos.x + 4.0f, pos.y), col, 1.0f);
14656}
14657
14658// Draw a 10px wide rectangle around CurposPos.x using Line Y1/Y2 in current window's DrawList
14659void ImGui::DebugDrawLineExtents(ImU32 col)

Callers

nothing calls this directly

Calls 2

ImVec2Function · 0.85
AddLineMethod · 0.80

Tested by

no test coverage detected