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