pub struct GesturePinchUpdateEvent { /* private fields */ }
Expand description
In-progress pinch gesture updated
Implementations§
Source§impl GesturePinchUpdateEvent
impl GesturePinchUpdateEvent
Sourcepub fn angle_delta(&self) -> f64
pub fn angle_delta(&self) -> f64
Return the angle delta in degrees between the last and the current
GesturePinchUpdateEvent
.
The angle delta is defined as the change in angle of the line formed by the 2 fingers of a pinch gesture. Clockwise rotation is represented by a positive delta, counter-clockwise by a negative delta. If e.g. the fingers are on the 12 and 6 location of a clock face plate and they move to the 1 resp. 7 location in a single event then the angle delta is 30 degrees.
If more than two fingers are present, the angle represents the rotation around the center of gravity. The calculation of the center of gravity is implementation-dependent.
Trait Implementations§
Source§impl AsRaw<libinput_event_gesture> for GesturePinchUpdateEvent
impl AsRaw<libinput_event_gesture> for GesturePinchUpdateEvent
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 GesturePinchUpdateEvent
impl Context for GesturePinchUpdateEvent
Source§impl Debug for GesturePinchUpdateEvent
impl Debug for GesturePinchUpdateEvent
Source§impl Drop for GesturePinchUpdateEvent
impl Drop for GesturePinchUpdateEvent
Source§impl EventTrait for GesturePinchUpdateEvent
impl EventTrait for GesturePinchUpdateEvent
Source§impl GestureEventCoordinates for GesturePinchUpdateEvent
impl GestureEventCoordinates for GesturePinchUpdateEvent
Source§fn dx_unaccelerated(&self) -> f64
fn dx_unaccelerated(&self) -> f64
Return the relative delta of the unaccelerated motion vector of the
current event. Read more
Source§fn dy_unaccelerated(&self) -> f64
fn dy_unaccelerated(&self) -> f64
Return the relative delta of the unaccelerated motion vector of the
current event. Read more
Source§impl GesturePinchEventTrait for GesturePinchUpdateEvent
impl GesturePinchEventTrait for GesturePinchUpdateEvent
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 GesturePinchUpdateEvent
impl Hash for GesturePinchUpdateEvent
Source§impl PartialEq for GesturePinchUpdateEvent
impl PartialEq for GesturePinchUpdateEvent
impl Eq for GesturePinchUpdateEvent
Auto Trait Implementations§
impl Freeze for GesturePinchUpdateEvent
impl !RefUnwindSafe for GesturePinchUpdateEvent
impl !Send for GesturePinchUpdateEvent
impl !Sync for GesturePinchUpdateEvent
impl Unpin for GesturePinchUpdateEvent
impl !UnwindSafe for GesturePinchUpdateEvent
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