Enum wayland_protocols::wp::cursor_shape::v1::client::wp_cursor_shape_device_v1::Shape
source · #[non_exhaustive]#[repr(u32)]pub enum Shape {
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,
}
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
ContextMenu = 2
a context menu is available for the object under the cursor
Help = 3
help is available for the object under the cursor
Pointer = 4
pointer that indicates a link or another interactive element
Progress = 5
progress indicator
Wait = 6
program is busy, user should wait
Cell = 7
a cell or set of cells may be selected
Crosshair = 8
simple crosshair
Text = 9
text may be selected
VerticalText = 10
vertical text may be selected
Alias = 11
drag-and-drop: alias of/shortcut to something is to be created
Copy = 12
drag-and-drop: something is to be copied
Move = 13
drag-and-drop: something is to be moved
NoDrop = 14
drag-and-drop: the dragged item cannot be dropped at the current cursor location
NotAllowed = 15
drag-and-drop: the requested action will not be carried out
Grab = 16
drag-and-drop: something can be grabbed
Grabbing = 17
drag-and-drop: something is being grabbed
EResize = 18
resizing: the east border is to be moved
NResize = 19
resizing: the north border is to be moved
NeResize = 20
resizing: the north-east corner is to be moved
NwResize = 21
resizing: the north-west corner is to be moved
SResize = 22
resizing: the south border is to be moved
SeResize = 23
resizing: the south-east corner is to be moved
SwResize = 24
resizing: the south-west corner is to be moved
WResize = 25
resizing: the west border is to be moved
EwResize = 26
resizing: the east and west borders are to be moved
NsResize = 27
resizing: the north and south borders are to be moved
NeswResize = 28
resizing: the north-east and south-west corners are to be moved
NwseResize = 29
resizing: the north-west and south-east corners are to be moved
ColResize = 30
resizing: that the item/column can be resized horizontally
RowResize = 31
resizing: that the item/row can be resized vertically
AllScroll = 32
something can be scrolled in any direction
ZoomIn = 33
something can be zoomed in
ZoomOut = 34
something can be zoomed out
Trait Implementations§
source§impl Ord for Shape
impl Ord for Shape
source§impl PartialEq for Shape
impl PartialEq for Shape
source§impl PartialOrd for Shape
impl PartialOrd for Shape
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Shape
impl Eq for Shape
impl StructuralPartialEq for Shape
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnwindSafe for Shape
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.