pub enum CursorStyle {
Show 31 variants
Arrow,
IBeam,
Crosshair,
ClosedHand,
OpenHand,
PointingHand,
ResizeLeft,
ResizeRight,
ResizeLeftRight,
ResizeUp,
ResizeDown,
ResizeUpDown,
ResizeUpLeftDownRight,
ResizeUpRightDownLeft,
ResizeColumn,
ResizeRow,
IBeamCursorForVerticalLayout,
OperationNotAllowed,
DragLink,
DragCopy,
ContextualMenu,
Help,
Progress,
Wait,
Move,
AllScroll,
Cell,
ZoomIn,
ZoomOut,
NoDrop,
Hidden,
}Expand description
The style of the cursor (pointer)
Variants§
Arrow
The default cursor
IBeam
A text input cursor
corresponds to the CSS cursor value text
Crosshair
A crosshair cursor
corresponds to the CSS cursor value crosshair
ClosedHand
A closed hand cursor
corresponds to the CSS cursor value grabbing
OpenHand
An open hand cursor
corresponds to the CSS cursor value grab
PointingHand
A pointing hand cursor
corresponds to the CSS cursor value pointer
ResizeLeft
A resize left cursor
corresponds to the CSS cursor value w-resize
ResizeRight
A resize right cursor
corresponds to the CSS cursor value e-resize
ResizeLeftRight
A resize cursor to the left and right
corresponds to the CSS cursor value ew-resize
ResizeUp
A resize up cursor
corresponds to the CSS cursor value n-resize
ResizeDown
A resize down cursor
corresponds to the CSS cursor value s-resize
ResizeUpDown
A resize cursor directing up and down
corresponds to the CSS cursor value ns-resize
ResizeUpLeftDownRight
A resize cursor directing up-left and down-right
corresponds to the CSS cursor value nesw-resize
ResizeUpRightDownLeft
A resize cursor directing up-right and down-left
corresponds to the CSS cursor value nwse-resize
ResizeColumn
A cursor indicating that the item/column can be resized horizontally.
corresponds to the CSS cursor value col-resize
ResizeRow
A cursor indicating that the item/row can be resized vertically.
corresponds to the CSS cursor value row-resize
IBeamCursorForVerticalLayout
A text input cursor for vertical layout
corresponds to the CSS cursor value vertical-text
OperationNotAllowed
A cursor indicating that the operation is not allowed
corresponds to the CSS cursor value not-allowed
DragLink
A cursor indicating that the operation will result in a link
corresponds to the CSS cursor value alias
DragCopy
A cursor indicating that the operation will result in a copy
corresponds to the CSS cursor value copy
ContextualMenu
A cursor indicating that the operation will result in a context menu
corresponds to the CSS cursor value context-menu
Help
corresponds to the CSS cursor value help
Progress
Busy, but the user can still interact
corresponds to the CSS cursor value progress
Wait
corresponds to the CSS cursor value wait
Move
corresponds to the CSS cursor value move
AllScroll
corresponds to the CSS cursor value all-scroll
Cell
corresponds to the CSS cursor value cell
ZoomIn
corresponds to the CSS cursor value zoom-in
ZoomOut
corresponds to the CSS cursor value zoom-out
NoDrop
corresponds to the CSS cursor value no-drop
Hidden
No cursor is shown
corresponds to the CSS cursor value none
Implementations§
Trait Implementations§
Source§impl Clone for CursorStyle
impl Clone for CursorStyle
impl Copy for CursorStyle
Source§impl Debug for CursorStyle
impl Debug for CursorStyle
Source§impl Default for CursorStyle
impl Default for CursorStyle
Source§impl<'de> Deserialize<'de> for CursorStyle
impl<'de> Deserialize<'de> for CursorStyle
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>,
impl Eq for CursorStyle
Source§impl Hash for CursorStyle
impl Hash for CursorStyle
Source§impl PartialEq for CursorStyle
impl PartialEq for CursorStyle
Source§impl Serialize for CursorStyle
impl Serialize for CursorStyle
impl StructuralPartialEq for CursorStyle
Auto Trait Implementations§
impl Forget for CursorStyle
impl Freeze for CursorStyle
impl Move for CursorStyle
impl RefUnwindSafe for CursorStyle
impl Send for CursorStyle
impl Sync for CursorStyle
impl Unpin for CursorStyle
impl UnsafeUnpin for CursorStyle
impl UnwindSafe for CursorStyle
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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> ⓘ
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 more