#[non_exhaustive]pub enum PointerEvent {
Motion(PointerMotion),
Absolute(PointerAbsolute),
Button(PointerButton),
Axis(PointerAxis),
}Expand description
Anything a pointer does.
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.
Motion(PointerMotion)
The pointer moved.
Absolute(PointerAbsolute)
The pointer reported where it is.
Button(PointerButton)
A button changed.
Axis(PointerAxis)
A scroll happened.
Trait Implementations§
Source§impl Clone for PointerEvent
impl Clone for PointerEvent
Source§impl Debug for PointerEvent
impl Debug for PointerEvent
Source§impl PartialEq for PointerEvent
impl PartialEq for PointerEvent
impl StructuralPartialEq for PointerEvent
Auto Trait Implementations§
impl Freeze for PointerEvent
impl RefUnwindSafe for PointerEvent
impl Send for PointerEvent
impl Sync for PointerEvent
impl Unpin for PointerEvent
impl UnsafeUnpin for PointerEvent
impl UnwindSafe for PointerEvent
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