pub enum CursorShape {
Show 36 variants
Default,
ContextMenu,
Help,
Pointer,
Progress,
Wait,
Cell,
Crosshair,
Text,
VerticalText,
Alias,
Copy,
Move,
NoDrop,
NotAllowed,
Grab,
Grabbing,
EResize,
NResize,
NeResize,
NwResize,
SResize,
SeResize,
SwResize,
WResize,
EwResize,
NsResize,
NeswResize,
NwseResize,
ColResize,
RowResize,
AllScroll,
ZoomIn,
ZoomOut,
DndAsk,
AllResize,
}Expand description
The cursor the platform should show: every shape of
wp_cursor_shape_device_v1, named as in CSS.
Variants§
Default
The default arrow.
ContextMenu
A context menu is available.
Help
Help is available.
Pointer
A pointing hand, over a button.
Progress
Busy, but still taking input.
Wait
Busy; wait.
Cell
A cell or cells can be picked.
Crosshair
A crosshair.
Text
An I-beam, over a text field.
VerticalText
An I-beam for vertical text.
Alias
Dropping makes an alias.
Copy
Dropping copies.
Move
Something moves.
NoDrop
Can’t be dropped here.
NotAllowed
Not allowed.
Grab
Can be grabbed.
Grabbing
Being grabbed.
EResize
Resizing the east edge.
NResize
Resizing the north edge.
NeResize
Resizing the north-east corner.
NwResize
Resizing the north-west corner.
SResize
Resizing the south edge.
SeResize
Resizing the south-east corner.
SwResize
Resizing the south-west corner.
WResize
Resizing the west edge.
EwResize
Resizing east and west.
NsResize
Resizing north and south.
NeswResize
Resizing north-east and south-west.
NwseResize
Resizing north-west and south-east.
ColResize
A column can be resized sideways.
RowResize
A row can be resized up and down.
AllScroll
Scrolls in any direction.
ZoomIn
Zooms in.
ZoomOut
Zooms out.
DndAsk
Dropping asks which action to take. Needs version 2 of the protocol; on version 1 a context menu cursor shows.
AllResize
Moves or resizes in any direction. Needs version 2 of the protocol; on version 1 the move cursor shows.