Merge pull request #2551 from airstrike/mouse-interactions
Expose additional mouse interaction cursors
This commit is contained in:
commit
e9e8e83cca
2 changed files with 18 additions and 0 deletions
|
|
@ -13,6 +13,13 @@ pub enum Interaction {
|
||||||
Grabbing,
|
Grabbing,
|
||||||
ResizingHorizontally,
|
ResizingHorizontally,
|
||||||
ResizingVertically,
|
ResizingVertically,
|
||||||
|
ResizingDiagonallyUp,
|
||||||
|
ResizingDiagonallyDown,
|
||||||
NotAllowed,
|
NotAllowed,
|
||||||
ZoomIn,
|
ZoomIn,
|
||||||
|
ZoomOut,
|
||||||
|
Cell,
|
||||||
|
Move,
|
||||||
|
Copy,
|
||||||
|
Help,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -440,8 +440,19 @@ pub fn mouse_interaction(
|
||||||
winit::window::CursorIcon::EwResize
|
winit::window::CursorIcon::EwResize
|
||||||
}
|
}
|
||||||
Interaction::ResizingVertically => winit::window::CursorIcon::NsResize,
|
Interaction::ResizingVertically => winit::window::CursorIcon::NsResize,
|
||||||
|
Interaction::ResizingDiagonallyUp => {
|
||||||
|
winit::window::CursorIcon::NeswResize
|
||||||
|
}
|
||||||
|
Interaction::ResizingDiagonallyDown => {
|
||||||
|
winit::window::CursorIcon::NwseResize
|
||||||
|
}
|
||||||
Interaction::NotAllowed => winit::window::CursorIcon::NotAllowed,
|
Interaction::NotAllowed => winit::window::CursorIcon::NotAllowed,
|
||||||
Interaction::ZoomIn => winit::window::CursorIcon::ZoomIn,
|
Interaction::ZoomIn => winit::window::CursorIcon::ZoomIn,
|
||||||
|
Interaction::ZoomOut => winit::window::CursorIcon::ZoomOut,
|
||||||
|
Interaction::Cell => winit::window::CursorIcon::Cell,
|
||||||
|
Interaction::Move => winit::window::CursorIcon::Move,
|
||||||
|
Interaction::Copy => winit::window::CursorIcon::Copy,
|
||||||
|
Interaction::Help => winit::window::CursorIcon::Help,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue