1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 22:00:03 -04:00

Show resize mouse cursor when resizing windows

This commit is contained in:
Emil Ernerfeldt
2020-04-20 10:01:13 +02:00
parent 472e0b9afe
commit 98178e9d69
4 changed files with 31 additions and 2 deletions

View File

@@ -170,6 +170,10 @@ impl Window {
state.rect = state.rect.translate(ctx.input().mouse_move);
}
if corner_interact.hovered || corner_interact.active {
*ctx.cursor_icon.lock() = CursorIcon::ResizeNorthWestSouthEast;
}
let mut memory = ctx.memory.lock();
if win_interact.active || corner_interact.active {
memory.move_window_to_top(id);