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