#[repr(u32)]pub enum MouseCursor {
Show 29 variants
Default = 0,
None = 1,
Help = 2,
Pointer = 3,
Progress = 4,
Wait = 5,
Crosshair = 6,
Text = 7,
Alias = 8,
Copy = 9,
Move = 10,
NoDrop = 11,
NotAllowed = 12,
Grab = 13,
Grabbing = 14,
ColResize = 15,
RowResize = 16,
NResize = 17,
EResize = 18,
SResize = 19,
WResize = 20,
NeResize = 21,
NwResize = 22,
SeResize = 23,
SwResize = 24,
EwResize = 25,
NsResize = 26,
NeswResize = 27,
NwseResize = 28,
}
Expand description
This enum represents different types of mouse cursors. It’s a subset of the mouse cursors available in CSS. For details and pictograms see the MDN Documentation for cursor. Depending on the backend and used OS unidirectional resize cursors may be replaced with bidirectional ones.
Variants§
Default = 0
The systems default cursor.
None = 1
No cursor is displayed.
Help = 2
A cursor indicating help information.
Pointer = 3
A pointing hand indicating a link.
Progress = 4
The program is busy but can still be interacted with.
Wait = 5
The program is busy.
Crosshair = 6
A crosshair.
Text = 7
A cursor indicating selectable text.
Alias = 8
An alias or shortcut is being created.
Copy = 9
A copy is being created.
Move = 10
Something is to be moved.
NoDrop = 11
Something can’t be dropped here.
NotAllowed = 12
An action isn’t allowed
Grab = 13
Something is grabbable.
Grabbing = 14
Something is being grabbed.
ColResize = 15
Indicating that a column is resizable horizontally.
RowResize = 16
Indicating that a row is resizable vertically.
NResize = 17
Unidirectional resize north.
EResize = 18
Unidirectional resize east.
SResize = 19
Unidirectional resize south.
WResize = 20
Unidirectional resize west.
NeResize = 21
Unidirectional resize north-east.
NwResize = 22
Unidirectional resize north-west.
SeResize = 23
Unidirectional resize south-east.
SwResize = 24
Unidirectional resize south-west.
EwResize = 25
Bidirectional resize east-west.
NsResize = 26
Bidirectional resize north-south.
NeswResize = 27
Bidirectional resize north-east-south-west.
NwseResize = 28
Bidirectional resize north-west-south-east.
Trait Implementations§
Source§impl Clone for MouseCursor
impl Clone for MouseCursor
Source§fn clone(&self) -> MouseCursor
fn clone(&self) -> MouseCursor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MouseCursor
impl Debug for MouseCursor
Source§impl Default for MouseCursor
impl Default for MouseCursor
Source§impl Display for MouseCursor
impl Display for MouseCursor
Source§impl FromStr for MouseCursor
impl FromStr for MouseCursor
Source§impl Hash for MouseCursor
impl Hash for MouseCursor
Source§impl PartialEq for MouseCursor
impl PartialEq for MouseCursor
Source§impl TryFrom<&str> for MouseCursor
impl TryFrom<&str> for MouseCursor
impl Copy for MouseCursor
impl Eq for MouseCursor
impl StructuralPartialEq for MouseCursor
Auto Trait Implementations§
impl Freeze for MouseCursor
impl RefUnwindSafe for MouseCursor
impl Send for MouseCursor
impl Sync for MouseCursor
impl Unpin for MouseCursor
impl UnwindSafe for MouseCursor
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
SharedString
.