Enum gdk4::TouchpadGesturePhase [−][src]
#[non_exhaustive]
pub enum TouchpadGesturePhase {
Begin,
Update,
End,
Cancel,
// some variants omitted
}
Expand description
Specifies the current state of a touchpad gesture.
All gestures are guaranteed to begin with an event with phase
Begin
, followed by 0 or several events
with phase Update
.
A finished gesture may have 2 possible outcomes, an event with phase
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 the compositor, 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 will report the phase
Cancel
, this should be used as a hint
to undo any visible/permanent changes that were done throughout the
progress of the gesture.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
The gesture has begun.
The gesture has been updated.
The gesture was finished, changes should be permanently applied.
The gesture was cancelled, all changes should be undone.
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for TouchpadGesturePhase
impl Send for TouchpadGesturePhase
impl Sync for TouchpadGesturePhase
impl Unpin for TouchpadGesturePhase
impl UnwindSafe for TouchpadGesturePhase
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.