Enum animate::TouchpadGesturePhase[][src]

#[non_exhaustive]
pub enum TouchpadGesturePhase {
    Begin,
    Update,
    End,
    Cancel,
    // some variants omitted
}

The phase of a touchpad gesture event. All gestures are guaranteed to begin with an event of type TouchpadGesturePhase::Begin, followed by a number of TouchpadGesturePhase::Update (possibly 0).

A finished gesture may have 2 possible outcomes, an event with phase TouchpadGesturePhase::End will be emitted when the gesture is considered successful, this should be used as the hint to perform any permanent changes.

Cancelled gestures may be so for a variety of reasons, due to hardware, or due to the gesture recognition layers hinting the gesture did not finish resolutely (eg. a 3rd finger being added during a pinch gesture). In these cases, the last event with report the phase TouchpadGesturePhase::Cancel, this should be used as a hint to undo any visible/permanent changes that were done throughout the progress of the gesture.

See also TouchpadPinchEvent and TouchpadPinchEvent.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Begin

The gesture has begun.

Update

The gesture has been updated.

End

The gesture was finished, changes should be permanently applied.

Cancel

The gesture was cancelled, all changes should be undone.

Trait Implementations

impl Clone for TouchpadGesturePhase[src]

impl Copy for TouchpadGesturePhase[src]

impl Debug for TouchpadGesturePhase[src]

impl Display for TouchpadGesturePhase[src]

impl Eq for TouchpadGesturePhase[src]

impl<'a> FromValue<'a> for TouchpadGesturePhase[src]

impl<'a> FromValueOptional<'a> for TouchpadGesturePhase[src]

impl Hash for TouchpadGesturePhase[src]

impl Ord for TouchpadGesturePhase[src]

impl PartialEq<TouchpadGesturePhase> for TouchpadGesturePhase[src]

impl PartialOrd<TouchpadGesturePhase> for TouchpadGesturePhase[src]

impl SetValue for TouchpadGesturePhase[src]

impl StaticType for TouchpadGesturePhase[src]

impl StructuralEq for TouchpadGesturePhase[src]

impl StructuralPartialEq for TouchpadGesturePhase[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: SetValue + Send + ToValue + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,