Skip to content

Commit

Permalink
Hovering a column set the resize <> mouse cursor #155
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Mar 21, 2015
1 parent b024ff8 commit 7c8946b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7c8946b

Please sign in to comment.