pub enum CursorStyle {
Show 21 variants
Arrow,
IBeam,
Crosshair,
ClosedHand,
OpenHand,
PointingHand,
ResizeLeft,
ResizeRight,
ResizeLeftRight,
ResizeUp,
ResizeDown,
ResizeUpDown,
ResizeUpLeftDownRight,
ResizeUpRightDownLeft,
ResizeColumn,
ResizeRow,
IBeamCursorForVerticalLayout,
OperationNotAllowed,
DragLink,
DragCopy,
ContextualMenu,
}Expand description
Native cursor shown while the pointer is over an element.
The variants mirror GPUI’s cursor vocabulary and map directly to the corresponding
platform cursor. Use crate::Element::cursor for the typed API or one of its
Tailwind-compatible cursor helpers.
Variants§
Arrow
The platform’s default arrow cursor (default).
IBeam
The horizontal text-selection cursor (text).
Crosshair
A crosshair cursor (crosshair).
ClosedHand
A closed hand (grabbing).
OpenHand
An open hand (grab).
PointingHand
A pointing hand (pointer).
ResizeLeft
A west-edge resize cursor (w-resize).
ResizeRight
An east-edge resize cursor (e-resize).
ResizeLeftRight
A horizontal resize cursor (ew-resize).
ResizeUp
A north-edge resize cursor (n-resize).
ResizeDown
A south-edge resize cursor (s-resize).
ResizeUpDown
A vertical resize cursor (ns-resize).
ResizeUpLeftDownRight
A north-west/south-east resize cursor (nwse-resize).
ResizeUpRightDownLeft
A north-east/south-west resize cursor (nesw-resize).
ResizeColumn
A column resize cursor (col-resize).
ResizeRow
A row resize cursor (row-resize).
IBeamCursorForVerticalLayout
The vertical text-selection cursor (vertical-text).
OperationNotAllowed
A cursor indicating that an operation is unavailable (not-allowed).
DragLink
A cursor indicating that a drag will create an alias (alias).
DragCopy
A cursor indicating that a drag will copy its payload (copy).
ContextualMenu
A cursor indicating that a context menu is available (context-menu).
Trait Implementations§
Source§impl Clone for CursorStyle
impl Clone for CursorStyle
Source§fn clone(&self) -> CursorStyle
fn clone(&self) -> CursorStyle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CursorStyle
Source§impl Debug for CursorStyle
impl Debug for CursorStyle
Source§impl Default for CursorStyle
impl Default for CursorStyle
Source§fn default() -> CursorStyle
fn default() -> CursorStyle
impl Eq for CursorStyle
Source§impl Hash for CursorStyle
impl Hash for CursorStyle
Source§impl PartialEq for CursorStyle
impl PartialEq 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 UnsafeUnpin for CursorStyle
impl UnwindSafe for CursorStyle
Blanket Implementations§
impl<T> Action for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.