Skip to content

Commit 4ff2467

Browse files
committed
add new wayland cursors
1 parent 97f87ed commit 4ff2467

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/lib.rs

+10
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,12 @@ pub enum CursorIcon {
252252
/// Indicates that something can be zoomed in. Often rendered as a
253253
/// magnifying glass with a "-" in the center of the glass.
254254
ZoomOut,
255+
256+
/// Indicates that the user will select the action that will be carried out.
257+
DndAsk,
258+
259+
/// Indicates that something can be moved or resized in any direction.
260+
AllResize,
255261
}
256262

257263
impl CursorIcon {
@@ -319,6 +325,8 @@ impl CursorIcon {
319325
CursorIcon::AllScroll => "all-scroll",
320326
CursorIcon::ZoomIn => "zoom-in",
321327
CursorIcon::ZoomOut => "zoom-out",
328+
CursorIcon::DndAsk => "dnd-ask",
329+
CursorIcon::AllResize => "all-resize",
322330
}
323331
}
324332

@@ -363,6 +371,8 @@ impl CursorIcon {
363371
CursorIcon::AllScroll => &["size_all"],
364372
CursorIcon::ZoomIn => &[],
365373
CursorIcon::ZoomOut => &[],
374+
CursorIcon::DndAsk => &["copy"],
375+
CursorIcon::AllResize => &["move"],
366376
}
367377
}
368378
}

0 commit comments

Comments
 (0)