- 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
ConstructorsConstructorDescriptionShaderType(int value) Creates a new ShaderType with givenvalue.ShaderType(QOpenGLShader.ShaderTypeBit... args) Creates a new ShaderType where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QOpenGLShader.ShaderTypeclone()Clones the flagsfinal QOpenGLShader.ShaderTypeCombines this flags with enum entry.final intfinal QOpenGLShader.ShaderTypeBit[]flags()Returns an array of flag objects represented by this ShaderType.final QOpenGLShader.ShaderTypeSets the flagefinal QOpenGLShader.ShaderTypesetFlag(QOpenGLShader.ShaderTypeBit e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
ShaderType
Creates a new ShaderType where the flags inargsare 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:
combinedin classQFlags<QOpenGLShader.ShaderTypeBit>- Parameters:
e- enum entry- Returns:
- new ShaderType
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QOpenGLShader.ShaderTypeBit>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<QOpenGLShader.ShaderTypeBit>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QOpenGLShader.ShaderTypeBit>
-
compareTo
- Specified by:
compareToin interfaceComparable<QOpenGLShader.ShaderType>
-