pub struct MagnifyValue {
pub magnification: f64,
pub velocity: f64,
pub start_anchor: (f64, f64),
pub start_location: (f64, f64),
pub time: f64,
}Expand description
A MagnifyGesture.Value.
magnify_gesture attaches the gesture and listens to nothing — it was the
only kind of gesture the DSL could add but never hear from. The layout is
the same shape as the drag’s and read the same way:
+0 time Date
+8 magnification CGFloat
+16 velocity CGFloat
+24 startAnchor UnitPoint
+40 startLocation CGPoint
+56 platform (empty)Fields§
§magnification: f64How far the pinch has scaled, as a multiplier — 1.0 is no change.
velocity: f64How fast it is scaling, in multiples per second.
start_anchor: (f64, f64)Where the pinch is centred, in unit space — (0.5, 0.5) is the middle.
start_location: (f64, f64)Where it began, in the gesture’s coordinate space.
time: f64Seconds since Apple’s reference date.
Trait Implementations§
Source§impl Clone for MagnifyValue
impl Clone for MagnifyValue
impl Copy for MagnifyValue
Source§impl Debug for MagnifyValue
impl Debug for MagnifyValue
Source§impl PartialEq for MagnifyValue
impl PartialEq for MagnifyValue
impl StructuralPartialEq for MagnifyValue
Auto Trait Implementations§
impl Freeze for MagnifyValue
impl RefUnwindSafe for MagnifyValue
impl Send for MagnifyValue
impl Sync for MagnifyValue
impl Unpin for MagnifyValue
impl UnsafeUnpin for MagnifyValue
impl UnwindSafe for MagnifyValue
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