- 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
ConstructorsConstructorDescriptionStates()
Creates a new States.States
(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
final void
setValue
(int value) Sets the value of this QFlags.final int
value()
Returns the value of this QFlags.
-
Constructor Details
-
States
public States()Creates a new States. -
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>
-
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
-