#[repr(C)]pub struct DetectedPinch {
pub scale: f32,
pub center: LogicalPosition,
pub initial_distance: f32,
pub current_distance: f32,
pub duration_ms: u64,
}Expand description
Result of pinch gesture detection
Fields§
§scale: f32Scale factor (< 1.0 for pinch in, > 1.0 for pinch out)
center: LogicalPositionCenter point of the pinch gesture
initial_distance: f32Initial distance between touch points
current_distance: f32Current distance between touch points
duration_ms: u64Duration of pinch (milliseconds)
Trait Implementations§
Source§impl Clone for DetectedPinch
impl Clone for DetectedPinch
Source§fn clone(&self) -> DetectedPinch
fn clone(&self) -> DetectedPinch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DetectedPinch
impl Debug for DetectedPinch
Source§impl PartialEq for DetectedPinch
impl PartialEq for DetectedPinch
Source§fn eq(&self, other: &DetectedPinch) -> bool
fn eq(&self, other: &DetectedPinch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DetectedPinch
impl StructuralPartialEq for DetectedPinch
Auto Trait Implementations§
impl Freeze for DetectedPinch
impl RefUnwindSafe for DetectedPinch
impl Send for DetectedPinch
impl Sync for DetectedPinch
impl Unpin for DetectedPinch
impl UnsafeUnpin for DetectedPinch
impl UnwindSafe for DetectedPinch
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more