java.lang.Object
io.qt.QFlags<QOpenGLShader.ShaderTypeBit>
io.qt.opengl.QOpenGLShader.ShaderType
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<QOpenGLShader.ShaderType>
- Enclosing class:
QOpenGLShader
public static final class QOpenGLShader.ShaderType
extends io.qt.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 flagflagMethods inherited from class io.qt.QFlags
clear, clear, clearAll, equals, flags, hashCode, isSet, isSet, set, set, setValue, testAnyFlags, testAnyFlags, testFlag, testFlags, testFlags, toInt, toString, value
-
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 classio.qt.QFlags<QOpenGLShader.ShaderTypeBit>- Parameters:
e- enum entry- Returns:
- new ShaderType
-
setFlag
Sets the flage- Overrides:
setFlagin classio.qt.QFlags<QOpenGLShader.ShaderTypeBit>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin classio.qt.QFlags<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 classio.qt.QFlags<QOpenGLShader.ShaderTypeBit>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classio.qt.QFlags<QOpenGLShader.ShaderTypeBit>
-
compareTo
- Specified by:
compareToin interfaceComparable<QOpenGLShader.ShaderType>
-