Struct input::event::gesture::GesturePinchUpdateEvent [] [src]

pub struct GesturePinchUpdateEvent { /* fields omitted */ }

In-progress pinch gesture updated

Methods

impl GesturePinchUpdateEvent
[src]

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]

Formats the value using the given formatter.

impl FromRaw<libinput_event_gesture> for GesturePinchUpdateEvent
[src]

Create a new instance of this type from a raw pointer. Read more

impl AsRaw<libinput_event_gesture> for GesturePinchUpdateEvent
[src]

Receive a raw pointer representing this type.

impl PartialEq for GesturePinchUpdateEvent
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for GesturePinchUpdateEvent
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl EventTrait for GesturePinchUpdateEvent
[src]

Convert into a general Event again

Get the libinput context from the event.

Return the device associated with this event. Read more

impl Drop for GesturePinchUpdateEvent
[src]

A method called when the value goes out of scope. Read more

impl GesturePinchEventTrait for GesturePinchUpdateEvent
[src]

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

Convert into a general GesturePinchEvent

impl GestureEventCoordinates for GesturePinchUpdateEvent
[src]

Return the delta between the last event and the current event. Read more

Return the relative delta of the unaccelerated motion vector of the current event. Read more

Return the delta between the last event and the current event. Read more

Return the relative delta of the unaccelerated motion vector of the current event. Read more