Draw last item rect in ForegroundDrawList (so it is always visible)
| 23911 | |
| 23912 | // Draw last item rect in ForegroundDrawList (so it is always visible) |
| 23913 | void ImGui::DebugDrawItemRect(ImU32 col) |
| 23914 | { |
| 23915 | ImGuiContext& g = *GImGui; |
| 23916 | ImGuiWindow* window = g.CurrentWindow; |
| 23917 | GetForegroundDrawList(window)->AddRect(g.LastItemData.Rect.Min, g.LastItemData.Rect.Max, col); |
| 23918 | } |
| 23919 | |
| 23920 | // [DEBUG] Locate item position/rectangle given an ID. |
| 23921 | static const ImU32 DEBUG_LOCATE_ITEM_COLOR = IM_COL32(0, 255, 0, 255); // Green |
nothing calls this directly
no test coverage detected