Expose additional mouse interaction cursors
This commit is contained in:
parent
9b99b932bc
commit
6dc71f6f3b
2 changed files with 14 additions and 0 deletions
|
|
@ -13,6 +13,11 @@ pub enum Interaction {
|
|||
Grabbing,
|
||||
ResizingHorizontally,
|
||||
ResizingVertically,
|
||||
ResizingDiagonalUp,
|
||||
ResizingDiagonalDown,
|
||||
NotAllowed,
|
||||
ZoomIn,
|
||||
ZoomOut,
|
||||
Cell,
|
||||
Move,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -423,8 +423,17 @@ pub fn mouse_interaction(
|
|||
winit::window::CursorIcon::EwResize
|
||||
}
|
||||
Interaction::ResizingVertically => winit::window::CursorIcon::NsResize,
|
||||
Interaction::ResizingDiagonalUp => {
|
||||
winit::window::CursorIcon::NeswResize
|
||||
}
|
||||
Interaction::ResizingDiagonalDown => {
|
||||
winit::window::CursorIcon::NwseResize
|
||||
}
|
||||
Interaction::NotAllowed => winit::window::CursorIcon::NotAllowed,
|
||||
Interaction::ZoomIn => winit::window::CursorIcon::ZoomIn,
|
||||
Interaction::ZoomOut => winit::window::CursorIcon::ZoomOut,
|
||||
Interaction::Cell => winit::window::CursorIcon::Cell,
|
||||
Interaction::Move => winit::window::CursorIcon::Move,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue