pub enum PointerGesture {
Pinch(f32),
Rotate(f32),
}Expand description
A touchpad gesture for pointer.
Variants§
Pinch(f32)
Pinch factor.
This is a signed quantity as a fraction of the current scale,
to derive a new scale you might use 1. + x * s where s
is your current scale, and x is this factor.
Rotate(f32)
Clockwise rotation in radians.
Trait Implementations§
Source§impl Clone for PointerGesture
impl Clone for PointerGesture
Source§fn clone(&self) -> PointerGesture
fn clone(&self) -> PointerGesture
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PointerGesture
impl RefUnwindSafe for PointerGesture
impl Send for PointerGesture
impl Sync for PointerGesture
impl Unpin for PointerGesture
impl UnwindSafe for PointerGesture
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