pub trait GestureEventTrait: AsRaw<libinput_event_gesture> + Context {
// Provided methods
fn time(&self) -> u32 { ... }
fn time_usec(&self) -> u64 { ... }
fn finger_count(&self) -> i32 { ... }
fn into_gesture_event(self) -> GestureEvent
where Self: Sized { ... }
}
Expand description
Common functions all Gesture-Events implement.
Provided Methods§
Sourcefn finger_count(&self) -> i32
fn finger_count(&self) -> i32
Return the number of fingers used for a gesture.
This can be used e.g. to differentiate between 3 or 4 finger swipes.
This function can be called on all gesture events and the returned finger count value will not change during a sequence.
Sourcefn into_gesture_event(self) -> GestureEventwhere
Self: Sized,
fn into_gesture_event(self) -> GestureEventwhere
Self: Sized,
Convert into a general GestureEvent
again