pub struct Cursor {
pub image: &'static CursorImage,
pub position: Point,
pub visible: bool,
}Expand description
Where the pointer is and what it looks like.
Fields§
§image: &'static CursorImageThe sprite to draw.
position: PointHotspot position in surface pixels.
visible: boolWhether the sprite is composited at all.
Starts hidden. A panel driven only by touch should never show a pointer, so the tree reveals it on the first pointer motion and hides it again when a finger arrives.
Implementations§
Trait Implementations§
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