pub enum ScalePhase {
Begin,
Update,
End,
}Expand description
The lifecycle phase of a scale (pinch/zoom) gesture.
No Cancel: every shipped source — the desktop ctrl/⌘+wheel mapping and
macOS’s PinchGesture — reports a clean bracket (or, for an ordinary
notch wheel, a lone Update with no bracket at
all), so there is nothing yet for a cancelled variant to mean. Widened the
day a source needs one.
Variants§
Begin
The gesture began.
Update
The gesture continued; the event’s scale_delta/focal/velocity
describe this increment.
End
The gesture ended normally.
Trait Implementations§
Source§impl Clone for ScalePhase
impl Clone for ScalePhase
impl Copy for ScalePhase
Source§impl Debug for ScalePhase
impl Debug for ScalePhase
impl Eq for ScalePhase
Source§impl PartialEq for ScalePhase
impl PartialEq for ScalePhase
impl StructuralPartialEq for ScalePhase
Auto Trait Implementations§
impl Freeze for ScalePhase
impl RefUnwindSafe for ScalePhase
impl Send for ScalePhase
impl Sync for ScalePhase
impl Unpin for ScalePhase
impl UnsafeUnpin for ScalePhase
impl UnwindSafe for ScalePhase
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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.