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