#[non_exhaustive]pub enum PointerEvent {
Motion(PointerMotionEvent),
MotionAbsolute(PointerMotionAbsoluteEvent),
Button(PointerButtonEvent),
Axis(PointerAxisEvent),
ScrollWheel(PointerScrollWheelEvent),
ScrollFinger(PointerScrollFingerEvent),
ScrollContinuous(PointerScrollContinuousEvent),
}
Expand description
A pointer related Event
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(PointerMotionEvent)
An event related to moving a pointer
MotionAbsolute(PointerMotionAbsoluteEvent)
An event related to absolute pointer movement
Button(PointerButtonEvent)
An event related to button pressed on a pointer device
Axis(PointerAxisEvent)
👎Deprecated: Use
PointerEvent::Scroll*
events insteadAn event related to moving axis on a pointer device
ScrollWheel(PointerScrollWheelEvent)
A scroll event from a wheel.
ScrollFinger(PointerScrollFingerEvent)
A scroll event caused by the movement of one or more fingers on a device.
ScrollContinuous(PointerScrollContinuousEvent)
A scroll event from a continuous scroll source, e.g. button scrolling.
Trait Implementations§
Source§impl AsRaw<libinput_event_pointer> for PointerEvent
impl AsRaw<libinput_event_pointer> for PointerEvent
Source§fn as_raw(&self) -> *const libinput_event_pointer
fn as_raw(&self) -> *const libinput_event_pointer
Receive a raw pointer representing this type.
Source§impl Context for PointerEvent
impl Context for PointerEvent
Source§impl Debug for PointerEvent
impl Debug for PointerEvent
Source§impl EventTrait for PointerEvent
impl EventTrait for PointerEvent
Source§impl FromRaw<libinput_event_pointer> for PointerEvent
impl FromRaw<libinput_event_pointer> for PointerEvent
Source§impl Hash for PointerEvent
impl Hash for PointerEvent
Source§impl PartialEq for PointerEvent
impl PartialEq for PointerEvent
impl Eq 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 !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