#[non_exhaustive]pub enum GesturePinchEvent {
Begin(GesturePinchBeginEvent),
Update(GesturePinchUpdateEvent),
End(GesturePinchEndEvent),
}
Expand description
Events for pinch 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(GesturePinchBeginEvent)
Pinch gesture began
Update(GesturePinchUpdateEvent)
In-progress pinch gesture updated
End(GesturePinchEndEvent)
Pinch gesture ended
Trait Implementations§
Source§impl AsRaw<libinput_event_gesture> for GesturePinchEvent
impl AsRaw<libinput_event_gesture> for GesturePinchEvent
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 GesturePinchEvent
impl Context for GesturePinchEvent
Source§impl Debug for GesturePinchEvent
impl Debug for GesturePinchEvent
Source§impl EventTrait for GesturePinchEvent
impl EventTrait for GesturePinchEvent
Source§impl GesturePinchEventTrait for GesturePinchEvent
impl GesturePinchEventTrait for GesturePinchEvent
Source§fn scale(&self) -> f64
fn scale(&self) -> f64
Return the absolute scale of a pinch gesture, the scale is the division of
the current distance between the fingers and the distance at the start of
the gesture. Read more
Source§fn into_gesture_pinch_event(self) -> GesturePinchEventwhere
Self: Sized,
fn into_gesture_pinch_event(self) -> GesturePinchEventwhere
Self: Sized,
Convert into a general
GesturePinchEvent
Source§impl Hash for GesturePinchEvent
impl Hash for GesturePinchEvent
Source§impl PartialEq for GesturePinchEvent
impl PartialEq for GesturePinchEvent
impl Eq for GesturePinchEvent
impl StructuralPartialEq for GesturePinchEvent
Auto Trait Implementations§
impl Freeze for GesturePinchEvent
impl !RefUnwindSafe for GesturePinchEvent
impl !Send for GesturePinchEvent
impl !Sync for GesturePinchEvent
impl Unpin for GesturePinchEvent
impl !UnwindSafe for GesturePinchEvent
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