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