Class QEventPoint.States
- 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- Since:
- This class was introduced in Qt 6.0.
- 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 inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QEventPoint.Statesclone()Clones the flagsfinal QEventPoint.StatesCombines this flags with enum entry.final intcompareTo(QEventPoint.States other) final QEventPoint.State []flags()Returns an array of flag objects represented by this States.final QEventPoint.StatesSets the flagefinal QEventPoint.StatessetFlag(QEventPoint.State e, boolean on) Sets or clears the flagflagfinal voidsetValue(int value) Sets the value of this QFlags.final intvalue()Returns the value of this QFlags.
-
Constructor Details
-
States
public States()Creates a new States. -
States
Creates a new States where the flags inargsare 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:
combinedin classQFlags<QEventPoint.State>- Parameters:
e- enum entry- Returns:
- new States
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QEventPoint.State>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<QEventPoint.State>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QEventPoint.State>
-
compareTo
- Specified by:
compareToin 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
-