pub struct ScaleEvent {
pub phase: ScalePhase,
pub scale_delta: f64,
pub focal: Point,
pub velocity: f64,
}Expand description
A pinch/zoom event — InputEvent::Scroll’s hit-tested
sibling, carrying a multiplicative delta and a focal point.
Fields§
§phase: ScalePhase§scale_delta: f64This event’s multiplicative change, not a running total: 1.0 is a no-op.
focal: PointThe fixed point of the zoom, in local logical space; translated like a pointer position.
velocity: f64Rate of scale change per second; 0.0 from every shipped source, which reports none.
Trait Implementations§
Source§impl Clone for ScaleEvent
impl Clone for ScaleEvent
impl Copy for ScaleEvent
Source§impl Debug for ScaleEvent
impl Debug for ScaleEvent
Source§impl PartialEq for ScaleEvent
impl PartialEq for ScaleEvent
impl StructuralPartialEq for ScaleEvent
Auto Trait Implementations§
impl Freeze for ScaleEvent
impl RefUnwindSafe for ScaleEvent
impl Send for ScaleEvent
impl Sync for ScaleEvent
impl Unpin for ScaleEvent
impl UnsafeUnpin for ScaleEvent
impl UnwindSafe for ScaleEvent
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> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.