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