pub enum CursorStyle {
Auto,
Default,
Text,
Pointer,
Grab,
Grabbing,
ResizeX,
ResizeY,
}Expand description
Platform cursor hint for hover regions.
Values cover automatic/default, text, pointer, grab/grabbing, and horizontal or vertical resize cursors.
§Examples
use ailloli_ui_core::style::CursorStyle;
assert_eq!(CursorStyle::default(), CursorStyle::Auto);Variants§
Auto
Let the host choose from context; this is the default.
Default
Platform default arrow cursor.
Text
Text insertion cursor.
Pointer
Pointing-hand cursor for links and activatable regions.
Grab
Open-hand cursor for a draggable region.
Grabbing
Closed-hand cursor while a drag is active.
ResizeX
Horizontal resize cursor.
ResizeY
Vertical resize cursor.
Trait Implementations§
Source§impl Clone for CursorStyle
impl Clone for CursorStyle
Source§fn clone(&self) -> CursorStyle
fn clone(&self) -> CursorStyle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
Source§impl PartialEq for CursorStyle
impl PartialEq 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
Mutably borrows from an owned value. Read more