#[non_exhaustive]pub enum MouseCursorType {
Show 23 variants
Default,
Pointer,
Crosshair,
Text,
VerticalText,
Move,
Grab,
Grabbing,
Wait,
Progress,
Cell,
Alias,
Copy,
NoDrop,
NotAllowed,
ColResize,
RowResize,
EwResize,
NsResize,
NeswResize,
NwseResize,
ZoomIn,
ZoomOut,
}Expand description
Identifies the shape of the mouse cursor displayed over the window. See WindowHelper::set_cursor.
The variants mirror the standard CSS cursor keywords and map directly onto the native cursors provided by each platform backend.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Default
The platform-dependent default cursor (usually an arrow).
Pointer
A pointing hand, typically used to indicate a link.
Crosshair
A crosshair.
Text
Indicates editable text (usually an I-beam).
VerticalText
Indicates editable vertical text.
Move
Indicates that something can be moved.
Grab
Indicates that something can be grabbed (an open hand).
Grabbing
Indicates that something is being grabbed (a closed hand).
Wait
Indicates that the program is busy and the user should wait.
Progress
Indicates that the program is busy in the background, but the user can still interact with the interface.
Cell
Indicates that a cell or set of cells may be selected.
Alias
Indicates an alias of/shortcut to something is to be created.
Copy
Indicates something is to be copied.
NoDrop
Indicates that the dragged item cannot be dropped at the current location.
NotAllowed
Indicates that the requested action will not be carried out.
ColResize
Indicates that an edge of a box is to be moved left/right.
RowResize
Indicates that an edge of a box is to be moved up/down.
EwResize
Indicates a horizontal (east-west) resize.
NsResize
Indicates a vertical (north-south) resize.
NeswResize
Indicates a bidirectional north-east/south-west resize.
NwseResize
Indicates a bidirectional north-west/south-east resize.
ZoomIn
Indicates that something can be zoomed in.
ZoomOut
Indicates that something can be zoomed out.
Trait Implementations§
Source§impl Clone for MouseCursorType
impl Clone for MouseCursorType
Source§fn clone(&self) -> MouseCursorType
fn clone(&self) -> MouseCursorType
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 MouseCursorType
Source§impl Debug for MouseCursorType
impl Debug for MouseCursorType
Source§impl Default for MouseCursorType
impl Default for MouseCursorType
Source§fn default() -> MouseCursorType
fn default() -> MouseCursorType
impl Eq for MouseCursorType
Source§impl Hash for MouseCursorType
impl Hash for MouseCursorType
Source§impl PartialEq for MouseCursorType
impl PartialEq for MouseCursorType
impl StructuralPartialEq for MouseCursorType
Auto Trait Implementations§
impl Freeze for MouseCursorType
impl RefUnwindSafe for MouseCursorType
impl Send for MouseCursorType
impl Sync for MouseCursorType
impl Unpin for MouseCursorType
impl UnsafeUnpin for MouseCursorType
impl UnwindSafe for MouseCursorType
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
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<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
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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().