- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description GestureFlags(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 Type Method Description Qt.GestureFlags
clone()
Clones the flagsQt.GestureFlags
combined(Qt.GestureFlag e)
Combines this flags with enum entry.int
compareTo(Qt.GestureFlags other)
Qt.GestureFlag[]
flags()
Returns an array of flag objects represented by this GestureFlags.Qt.GestureFlags
setFlag(Qt.GestureFlag e)
Sets the flage
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>
-