From 4ff246796d68e0a260d13bdb8943ad0a123ed6f9 Mon Sep 17 00:00:00 2001 From: may Date: Fri, 7 Mar 2025 01:35:34 +0100 Subject: [PATCH] add new wayland cursors --- src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index e5ed8fa..8e840dc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -252,6 +252,12 @@ pub enum CursorIcon { /// Indicates that something can be zoomed in. Often rendered as a /// magnifying glass with a "-" in the center of the glass. ZoomOut, + + /// Indicates that the user will select the action that will be carried out. + DndAsk, + + /// Indicates that something can be moved or resized in any direction. + AllResize, } impl CursorIcon { @@ -319,6 +325,8 @@ impl CursorIcon { CursorIcon::AllScroll => "all-scroll", CursorIcon::ZoomIn => "zoom-in", CursorIcon::ZoomOut => "zoom-out", + CursorIcon::DndAsk => "dnd-ask", + CursorIcon::AllResize => "all-resize", } } @@ -363,6 +371,8 @@ impl CursorIcon { CursorIcon::AllScroll => &["size_all"], CursorIcon::ZoomIn => &[], CursorIcon::ZoomOut => &[], + CursorIcon::DndAsk => &["copy"], + CursorIcon::AllResize => &["move"], } } }