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