pub enum Cursor {
Default,
Hidden,
Image {
pixels: Pixels,
hotspot: Point,
},
}Expand description
The pointer’s cursor over a GpuSurface, while it isn’t locked.
Variants§
Default
The platform’s own: the arrow.
Hidden
None: the pointer still moves, unseen (a machine that draws its own).
Image
An image of the app’s, e.g. the one a machine gives its pointer,
shown at its scale. hotspot: the point that points, in points from
its top left.
Trait Implementations§
impl StructuralPartialEq for Cursor
Auto Trait Implementations§
impl Freeze 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