#[non_exhaustive]pub enum GestureSwipeEvent {
Begin(GestureSwipeBeginEvent),
Update(GestureSwipeUpdateEvent),
End(GestureSwipeEndEvent),
}
Expand description
Events for swipe gestures
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.
Begin(GestureSwipeBeginEvent)
Swipe gesture began
Update(GestureSwipeUpdateEvent)
In-progress swipe gesture updated
End(GestureSwipeEndEvent)
Swipe gesture ended
Trait Implementations§
Source§impl AsRaw<libinput_event_gesture> for GestureSwipeEvent
impl AsRaw<libinput_event_gesture> for GestureSwipeEvent
Source§fn as_raw(&self) -> *const libinput_event_gesture
fn as_raw(&self) -> *const libinput_event_gesture
Receive a raw pointer representing this type.
Source§impl Context for GestureSwipeEvent
impl Context for GestureSwipeEvent
Source§impl Debug for GestureSwipeEvent
impl Debug for GestureSwipeEvent
Source§impl EventTrait for GestureSwipeEvent
impl EventTrait for GestureSwipeEvent
Source§impl GestureSwipeEventTrait for GestureSwipeEvent
impl GestureSwipeEventTrait for GestureSwipeEvent
Source§fn into_gesture_swipe_event(self) -> GestureSwipeEventwhere
Self: Sized,
fn into_gesture_swipe_event(self) -> GestureSwipeEventwhere
Self: Sized,
Convert into a general
GestureSwipeEvent
Source§impl Hash for GestureSwipeEvent
impl Hash for GestureSwipeEvent
Source§impl PartialEq for GestureSwipeEvent
impl PartialEq for GestureSwipeEvent
impl Eq for GestureSwipeEvent
impl StructuralPartialEq for GestureSwipeEvent
Auto Trait Implementations§
impl Freeze for GestureSwipeEvent
impl !RefUnwindSafe for GestureSwipeEvent
impl !Send for GestureSwipeEvent
impl !Sync for GestureSwipeEvent
impl Unpin for GestureSwipeEvent
impl !UnwindSafe for GestureSwipeEvent
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
Source§impl<T> GestureEventTrait for T
impl<T> GestureEventTrait for T
Source§fn finger_count(&self) -> i32
fn finger_count(&self) -> i32
Return the number of fingers used for a gesture. Read more
Source§fn into_gesture_event(self) -> GestureEventwhere
Self: Sized,
fn into_gesture_event(self) -> GestureEventwhere
Self: Sized,
Convert into a general
GestureEvent
again