#[non_exhaustive]pub enum Cursor {
Default,
Pointer,
Text,
Resize(ResizeEdge),
}Expand description
The look of the pointer over a node.
The windowing layer shows the cursor of the deepest enabled node under the pointer that sets one, and the platform default when none does. The resize variants name the direction the resize would pull, so an edge handle shows the same look the window system uses when it resizes that edge.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Default
The platform default, usually an arrow.
Pointer
A clickable target, usually a pointing hand.
Text
A place where text can be selected or a caret put, usually an I beam.
Resize(ResizeEdge)
A window edge or corner that resizes in that direction.
Trait Implementations§
impl Copy for Cursor
impl Eq for Cursor
impl StructuralPartialEq for Cursor
Auto Trait Implementations§
impl Forget for Cursor
impl Freeze for Cursor
impl Move for Cursor
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnsafeUnpin for Cursor
impl UnwindSafe for Cursor
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