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