Draw a small cross at current CursorPos in current window's DrawList
| 14647 | |
| 14648 | // Draw a small cross at current CursorPos in current window's DrawList |
| 14649 | void 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 |
| 14659 | void ImGui::DebugDrawLineExtents(ImU32 col) |