From 7c8946b9b78f2a7ab94df1add18a26b244ac4ca8 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sat, 21 Mar 2015 17:48:03 +0000 Subject: [PATCH] Hovering a column set the resize <> mouse cursor #155 --- imgui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imgui.cpp b/imgui.cpp index 3531ae70..07115c54 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -7111,6 +7111,8 @@ void ImGui::Columns(int columns_count, const char* id, bool border) bool hovered, held; ButtonBehavior(column_rect, column_id, &hovered, &held, true); + if (hovered || held) + g.MouseCursor = ImGuiMouseCursor_ResizeEW; // Draw before resize so our items positioning are in sync with the line being drawn const ImU32 col = window->Color(held ? ImGuiCol_ColumnActive : hovered ? ImGuiCol_ColumnHovered : ImGuiCol_Column);