pub enum PinchPhase {
Started {
center: Point,
},
Changed {
center: Point,
scale: f32,
rotation: f32,
},
Ended,
}Expand description
Phase of a pinch (or rotation) gesture, as delivered to an on_pinch
handler. On desktop these are produced by OS trackpad gestures
(TouchpadMagnify / RotationGesture); on touch they come from a
dedicated recognizer.
Variants§
Trait Implementations§
Source§impl Clone for PinchPhase
impl Clone for PinchPhase
Source§fn clone(&self) -> PinchPhase
fn clone(&self) -> PinchPhase
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 moreimpl Copy for PinchPhase
Auto Trait Implementations§
impl Freeze for PinchPhase
impl RefUnwindSafe for PinchPhase
impl Send for PinchPhase
impl Sync for PinchPhase
impl Unpin for PinchPhase
impl UnsafeUnpin for PinchPhase
impl UnwindSafe for PinchPhase
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