Enum input::event::gesture::GesturePinchEvent
[−]
[src]
pub enum GesturePinchEvent { Begin(GesturePinchBeginEvent), Update(GesturePinchUpdateEvent), End(GesturePinchEndEvent), }
Events for pinch gestures
Variants
Begin(GesturePinchBeginEvent)
Pinch gesture began
Update(GesturePinchUpdateEvent)
In-progress pinch gesture updated
End(GesturePinchEndEvent)
Pinch gesture ended
Trait Implementations
impl Debug for GesturePinchEvent
[src]
impl PartialEq for GesturePinchEvent
[src]
fn eq(&self, __arg_0: &GesturePinchEvent) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &GesturePinchEvent) -> bool
This method tests for !=
.
impl Eq for GesturePinchEvent
[src]
impl Hash for GesturePinchEvent
[src]
fn hash<__H: Hasher>(&self, __arg_0: &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 GesturePinchEvent
[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 GesturePinchEventTrait for GesturePinchEvent
[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 FromRaw<libinput_event_gesture> for GesturePinchEvent
[src]
unsafe fn from_raw(event: *mut libinput_event_gesture) -> Self
Create a new instance of this type from a raw pointer. Read more
impl AsRaw<libinput_event_gesture> for GesturePinchEvent
[src]
fn as_raw(&self) -> *const libinput_event_gesture
Receive a raw pointer representing this type.