diff --git a/core/src/mouse/interaction.rs b/core/src/mouse/interaction.rs index 065eb8e725..aad6a3ea93 100644 --- a/core/src/mouse/interaction.rs +++ b/core/src/mouse/interaction.rs @@ -13,6 +13,13 @@ pub enum Interaction { Grabbing, ResizingHorizontally, ResizingVertically, + ResizingDiagonallyUp, + ResizingDiagonallyDown, NotAllowed, ZoomIn, + ZoomOut, + Cell, + Move, + Copy, + Help, } diff --git a/winit/src/conversion.rs b/winit/src/conversion.rs index e88ff84d78..e762ae7c94 100644 --- a/winit/src/conversion.rs +++ b/winit/src/conversion.rs @@ -423,8 +423,19 @@ pub fn mouse_interaction( winit::window::CursorIcon::EwResize } 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::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, } }