pub enum PointerPhase {
Down,
Move,
Up,
Cancel,
}Expand description
The lifecycle phase of a pointer gesture.
A gesture is a Down, zero or more Moves, and a terminating Up or
Cancel. Cancel fires when the platform steals the gesture (e.g. a system
gesture recognizer wins) and, like Up, releases any capture.
Variants§
Down
A contact began (mouse-down / finger-down).
Move
A contact moved while down.
Up
A contact ended normally (mouse-up / finger-up). Releases capture.
Cancel
The gesture was cancelled by the platform. Releases capture.
Trait Implementations§
Source§impl Clone for PointerPhase
impl Clone for PointerPhase
impl Copy for PointerPhase
Source§impl Debug for PointerPhase
impl Debug for PointerPhase
impl Eq for PointerPhase
Source§impl PartialEq for PointerPhase
impl PartialEq for PointerPhase
impl StructuralPartialEq for PointerPhase
Auto Trait Implementations§
impl Freeze for PointerPhase
impl RefUnwindSafe for PointerPhase
impl Send for PointerPhase
impl Sync for PointerPhase
impl Unpin for PointerPhase
impl UnsafeUnpin for PointerPhase
impl UnwindSafe for PointerPhase
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.