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