#[repr(u8)]pub enum Cursor {
Show 35 variants
None = 0,
Default = 1,
Pointer = 2,
ContextMenu = 3,
Help = 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
A cursor for the window. This is different from a CSS cursor (see
CursorKind) in that it has no Auto value.
Variants§
None = 0
Default = 1
Pointer = 2
ContextMenu = 3
Help = 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
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cursor
impl<'de> Deserialize<'de> for Cursor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MallocSizeOf for Cursor
impl MallocSizeOf for Cursor
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
impl Copy for Cursor
impl Eq for Cursor
impl StructuralPartialEq for Cursor
Auto Trait Implementations§
impl Freeze for Cursor
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnwindSafe for Cursor
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert