- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QGestureRecognizer.Result>
- Enclosing class:
- QGestureRecognizer
public static final class QGestureRecognizer.Result extends QFlags<QGestureRecognizer.ResultFlag> implements Comparable<QGestureRecognizer.Result>
QFlags type for enum
QGestureRecognizer.ResultFlag
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description Result(int value)
Creates a new Result with givenvalue
.Result(QGestureRecognizer.ResultFlag... args)
Creates a new Result where the flags inargs
are set. -
Method Summary
Modifier and Type Method Description QGestureRecognizer.Result
clone()
Clones the flagsQGestureRecognizer.Result
combined(QGestureRecognizer.ResultFlag e)
Combines this flags with enum entry.int
compareTo(QGestureRecognizer.Result other)
QGestureRecognizer.ResultFlag[]
flags()
Returns an array of flag objects represented by this Result.QGestureRecognizer.Result
setFlag(QGestureRecognizer.ResultFlag e)
Sets the flage
QGestureRecognizer.Result
setFlag(QGestureRecognizer.ResultFlag e, boolean on)
Sets or clears the flagflag
-
Constructor Details
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QGestureRecognizer.ResultFlag>
- Parameters:
e
- enum entry- Returns:
- new Result
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QGestureRecognizer.ResultFlag>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QGestureRecognizer.ResultFlag>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this Result.- Overrides:
flags
in classQFlags<QGestureRecognizer.ResultFlag>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QGestureRecognizer.ResultFlag>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QGestureRecognizer.Result>
-