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