Struct input::event::gesture::GesturePinchUpdateEvent
[−]
[src]
pub struct GesturePinchUpdateEvent { /* fields omitted */ }
In-progress pinch gesture updated
Methods
impl GesturePinchUpdateEvent
[src]
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
impl Eq for GesturePinchUpdateEvent
[src]
impl Debug for GesturePinchUpdateEvent
[src]
impl FromRaw<libinput_event_gesture> for GesturePinchUpdateEvent
[src]
unsafe fn from_raw(ffi: *mut libinput_event_gesture) -> Self
Create a new instance of this type from a raw pointer. Read more
impl AsRaw<libinput_event_gesture> for GesturePinchUpdateEvent
[src]
fn as_raw(&self) -> *const libinput_event_gesture
Receive a raw pointer representing this type.
impl PartialEq for GesturePinchUpdateEvent
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Hash for GesturePinchUpdateEvent
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl EventTrait for GesturePinchUpdateEvent
[src]
fn into_event(self) -> Event where
Self: Sized,
Self: Sized,
Convert into a general Event
again
fn context(&self) -> Libinput
Get the libinput context from the event.
fn device(&self) -> Device
Return the device associated with this event. Read more
impl Drop for GesturePinchUpdateEvent
[src]
impl GesturePinchEventTrait for GesturePinchUpdateEvent
[src]
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
fn into_gesture_pinch_event(self) -> GesturePinchEvent where
Self: Sized,
Self: Sized,
Convert into a general GesturePinchEvent
impl GestureEventCoordinates for GesturePinchUpdateEvent
[src]
fn dx(&self) -> f64
Return the delta between the last event and the current event. Read more
fn dx_unaccelerated(&self) -> f64
Return the relative delta of the unaccelerated motion vector of the current event. Read more
fn dy(&self) -> f64
Return the delta between the last event and the current event. Read more
fn dy_unaccelerated(&self) -> f64
Return the relative delta of the unaccelerated motion vector of the current event. Read more