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