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