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