Enum wayrs_utils::cursor::CursorShape
source · #[non_exhaustive]#[repr(u32)]pub enum CursorShape {
Show 34 variants
Default = 1,
ContextMenu = 2,
Help = 3,
Pointer = 4,
Progress = 5,
Wait = 6,
Cell = 7,
Crosshair = 8,
Text = 9,
VerticalText = 10,
Alias = 11,
Copy = 12,
Move = 13,
NoDrop = 14,
NotAllowed = 15,
Grab = 16,
Grabbing = 17,
EResize = 18,
NResize = 19,
NeResize = 20,
NwResize = 21,
SResize = 22,
SeResize = 23,
SwResize = 24,
WResize = 25,
EwResize = 26,
NsResize = 27,
NeswResize = 28,
NwseResize = 29,
ColResize = 30,
RowResize = 31,
AllScroll = 32,
ZoomIn = 33,
ZoomOut = 34,
}cursor only.Expand description
cursor shapes
This enum describes cursor shapes.
The names are taken from the CSS W3C specification: https://w3c.github.io/csswg-drafts/css-ui/#cursor
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Default = 1
default cursor
Since version 1.
ContextMenu = 2
a context menu is available for the object under the cursor
Since version 1.
Help = 3
help is available for the object under the cursor
Since version 1.
Pointer = 4
pointer that indicates a link or another interactive element
Since version 1.
Progress = 5
progress indicator
Since version 1.
Wait = 6
program is busy, user should wait
Since version 1.
Cell = 7
a cell or set of cells may be selected
Since version 1.
Crosshair = 8
simple crosshair
Since version 1.
Text = 9
text may be selected
Since version 1.
VerticalText = 10
vertical text may be selected
Since version 1.
Alias = 11
drag-and-drop: alias of/shortcut to something is to be created
Since version 1.
Copy = 12
drag-and-drop: something is to be copied
Since version 1.
Move = 13
drag-and-drop: something is to be moved
Since version 1.
NoDrop = 14
drag-and-drop: the dragged item cannot be dropped at the current cursor location
Since version 1.
NotAllowed = 15
drag-and-drop: the requested action will not be carried out
Since version 1.
Grab = 16
drag-and-drop: something can be grabbed
Since version 1.
Grabbing = 17
drag-and-drop: something is being grabbed
Since version 1.
EResize = 18
resizing: the east border is to be moved
Since version 1.
NResize = 19
resizing: the north border is to be moved
Since version 1.
NeResize = 20
resizing: the north-east corner is to be moved
Since version 1.
NwResize = 21
resizing: the north-west corner is to be moved
Since version 1.
SResize = 22
resizing: the south border is to be moved
Since version 1.
SeResize = 23
resizing: the south-east corner is to be moved
Since version 1.
SwResize = 24
resizing: the south-west corner is to be moved
Since version 1.
WResize = 25
resizing: the west border is to be moved
Since version 1.
EwResize = 26
resizing: the east and west borders are to be moved
Since version 1.
NsResize = 27
resizing: the north and south borders are to be moved
Since version 1.
NeswResize = 28
resizing: the north-east and south-west corners are to be moved
Since version 1.
NwseResize = 29
resizing: the north-west and south-east corners are to be moved
Since version 1.
ColResize = 30
resizing: that the item/column can be resized horizontally
Since version 1.
RowResize = 31
resizing: that the item/row can be resized vertically
Since version 1.
AllScroll = 32
something can be scrolled in any direction
Since version 1.
ZoomIn = 33
something can be zoomed in
Since version 1.
ZoomOut = 34
something can be zoomed out
Since version 1.