pub enum CursorIcon {
Default,
Pointer,
Text,
EwResize,
NsResize,
NwseResize,
NeswResize,
Grab,
Grabbing,
Hidden,
}Variants§
Default
Pointer
Text
EwResize
NsResize
NwseResize
NeswResize
Grab
Grabbing
Hidden
Hide the OS cursor entirely. Games draw their own crosshair
(e.g. twin-stick shooters in keyboard mode) and the OS arrow
would double-paint next to it. Platform runners implement this
with set_cursor_visible(false), not an icon.
Trait Implementations§
Source§impl Clone for CursorIcon
impl Clone for CursorIcon
Source§fn clone(&self) -> CursorIcon
fn clone(&self) -> CursorIcon
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CursorIcon
Source§impl Debug for CursorIcon
impl Debug for CursorIcon
impl Eq for CursorIcon
Source§impl PartialEq for CursorIcon
impl PartialEq for CursorIcon
impl StructuralPartialEq for CursorIcon
Auto Trait Implementations§
impl Freeze for CursorIcon
impl RefUnwindSafe for CursorIcon
impl Send for CursorIcon
impl Sync for CursorIcon
impl Unpin for CursorIcon
impl UnsafeUnpin for CursorIcon
impl UnwindSafe for CursorIcon
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