pub enum PointerGesture {
Pinch(f32),
Rotate(f32),
}Expand description
A touchpad gesture for pointer.
Variants§
Pinch(f32)
Pinch delta.
This is a signed quantity as a fraction of the current scale.
For example, 0.1 means “increase scale by 10%”, and -0.1 means
“decrease scale by 10%”.
A common update rule is new_scale = current_scale * (1.0 + delta).
Rotate(f32)
Clockwise rotation in radians.
This is a delta for this update, not an absolute angle.
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