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