Enum i_slint_core::items::MouseCursor
source · [−]#[repr(C)]
pub enum MouseCursor {
Show 29 variants
Default,
None,
Help,
Pointer,
Progress,
Wait,
Crosshair,
Text,
Alias,
Copy,
Move,
NoDrop,
NotAllowed,
Grab,
Grabbing,
ColResize,
RowResize,
NResize,
EResize,
SResize,
WResize,
NeResize,
NwResize,
SeResize,
SwResize,
EwResize,
NsResize,
NeswResize,
NwseResize,
}Expand description
This enum represents different types of mouse cursors. It is a subset of the mouse cursors available in CSS. For details and pictograms see the MDN Documentation for cursor. Depending on the backend and used OS unidirectional resize cursors may be replaced with bidirectional ones.
Variants
Default
The systems default cursor.
None
No cursor is displayed.
Help
A cursor indicating help information.
Pointer
A pointing hand indicating a link.
Progress
The program is busy but can still be interacted with.
Wait
The program is busy.
Crosshair
A crosshair.
Text
A cursor indicating selectable text.
Alias
An alias or shortcut is being created.
Copy
A copy is being created.
Move
Something is to be moved.
NoDrop
Something cannot be dropped here.
NotAllowed
An action is not allowed
Grab
Something is grabbable.
Grabbing
Something is being grabbed.
ColResize
Indicating that a column is resizable horizontally.
RowResize
Indicating that a row is resizable vertically.
NResize
Unidirectional resize north.
EResize
Unidirectional resize east.
SResize
Unidirectional resize south.
WResize
Unidirectional resize west.
NeResize
Unidirectional resize north-east.
NwResize
Unidirectional resize north-west.
SeResize
Unidirectional resize south-east.
SwResize
Unidirectional resize south-west.
EwResize
Bidirectional resize east-west.
NsResize
Bidirectional resize north-south.
NeswResize
Bidirectional resize north-east-south-west.
NwseResize
Bidirectional resize north-west-south-east.
Trait Implementations
sourceimpl Clone for MouseCursor
impl Clone for MouseCursor
sourcefn clone(&self) -> MouseCursor
fn clone(&self) -> MouseCursor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MouseCursor
impl Debug for MouseCursor
sourceimpl Default for MouseCursor
impl Default for MouseCursor
sourceimpl Display for MouseCursor
impl Display for MouseCursor
sourceimpl FromStr for MouseCursor
impl FromStr for MouseCursor
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
sourceimpl Hash for MouseCursor
impl Hash for MouseCursor
sourceimpl PartialEq<MouseCursor> for MouseCursor
impl PartialEq<MouseCursor> for MouseCursor
sourcefn eq(&self, other: &MouseCursor) -> bool
fn eq(&self, other: &MouseCursor) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl TryFrom<&str> for MouseCursor
impl TryFrom<&str> for MouseCursor
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
impl Copy for MouseCursor
impl Eq for MouseCursor
impl StructuralEq for MouseCursor
impl StructuralPartialEq for MouseCursor
Auto Trait Implementations
impl RefUnwindSafe for MouseCursor
impl Send for MouseCursor
impl Sync for MouseCursor
impl Unpin for MouseCursor
impl UnwindSafe for MouseCursor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
sourcefn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.