- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description FormatOptions(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 Type Method Description QSurfaceFormat.FormatOptions
clone()
Clones the flagsQSurfaceFormat.FormatOptions
combined(QSurfaceFormat.FormatOption e)
Combines this flags with enum entry.int
compareTo(QSurfaceFormat.FormatOptions other)
QSurfaceFormat.FormatOption[]
flags()
Returns an array of flag objects represented by this FormatOptions.QSurfaceFormat.FormatOptions
setFlag(QSurfaceFormat.FormatOption e)
Sets the flage
QSurfaceFormat.FormatOptions
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>
-