Draw a small cross at current CursorPos in current window's DrawList
| 17973 | |
| 17974 | // Draw a small cross at current CursorPos in current window's DrawList |
| 17975 | void 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 |
| 17985 | void ImGui::DebugDrawLineExtents(ImU32 col) |