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,
no_drop,
not_allowed,
grab,
grabbing,
col_resize,
row_resize,
n_resize,
e_resize,
s_resize,
w_resize,
ne_resize,
nw_resize,
se_resize,
sw_resize,
ew_resize,
ns_resize,
nesw_resize,
nwse_resize,
}
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.
no_drop
Something cannot be dropped here.
not_allowed
An action is not allowed
grab
Something is grabbable.
grabbing
Something is being grabbed.
col_resize
Indicating that a column is resizable horizontally.
row_resize
Indicating that a row is resizable vertically.
n_resize
Unidirectional resize north.
e_resize
Unidirectional resize east.
s_resize
Unidirectional resize south.
w_resize
Unidirectional resize west.
ne_resize
Unidirectional resize north-east.
nw_resize
Unidirectional resize north-west.
se_resize
Unidirectional resize south-east.
sw_resize
Unidirectional resize south-west.
ew_resize
Bidirectional resize east-west.
ns_resize
Bidirectional resize north-south.
nesw_resize
Bidirectional resize north-east-south-west.
nwse_resize
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
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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