Draw a small cross at current CursorPos in current window's DrawList
| 14969 | |
| 14970 | // Draw a small cross at current CursorPos in current window's DrawList |
| 14971 | void 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 |
| 14981 | void ImGui::DebugDrawLineExtents(ImU32 col) |