pub enum CursorStyle {
Show 22 variants
Arrow,
IBeam,
Crosshair,
ClosedHand,
OpenHand,
PointingHand,
ResizeLeft,
ResizeRight,
ResizeLeftRight,
ResizeUp,
ResizeDown,
ResizeUpDown,
ResizeUpLeftDownRight,
ResizeUpRightDownLeft,
ResizeColumn,
ResizeRow,
IBeamCursorForVerticalLayout,
OperationNotAllowed,
DragLink,
DragCopy,
ContextualMenu,
None,
}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
None
Hide the cursor
Trait Implementations§
Source§impl Clone for CursorStyle
impl Clone for CursorStyle
Source§fn clone(&self) -> CursorStyle
fn clone(&self) -> CursorStyle
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CursorStyle
impl Debug for CursorStyle
Source§impl Default for CursorStyle
impl Default for CursorStyle
Source§fn default() -> CursorStyle
fn default() -> 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>,
Source§impl Hash for CursorStyle
impl Hash for CursorStyle
Source§impl JsonSchema for CursorStyle
impl JsonSchema for CursorStyle
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for CursorStyle
impl PartialEq for CursorStyle
Source§impl Serialize for CursorStyle
impl Serialize for CursorStyle
impl Copy for CursorStyle
impl Eq for CursorStyle
impl StructuralPartialEq for CursorStyle
Auto Trait Implementations§
impl Freeze for CursorStyle
impl RefUnwindSafe for CursorStyle
impl Send for CursorStyle
impl Sync for CursorStyle
impl Unpin 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,
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.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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.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§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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().