Enum Class TouchpadGesturePhase
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<TouchpadGesturePhase>
,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the TouchpadGesturePhase classint
getValue()
Get the numeric value of this enumstatic TouchpadGesturePhase
of
(int value) Create a new TouchpadGesturePhase for the provided valuestatic TouchpadGesturePhase
Returns the enum constant of this class with the specified name.static TouchpadGesturePhase[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
Create a new TouchpadGesturePhase for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-