- 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
ConstructorsConstructorDescriptionCreates a new FormatOptions.FormatOptions(int value) Creates a new FormatOptions with givenvalue.FormatOptions(QSurfaceFormat.FormatOption ... args) Creates a new FormatOptions where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the flagsCombines this flags with enum entry.final intfinal QSurfaceFormat.FormatOption []flags()Returns an array of flag objects represented by this FormatOptions.Sets the flagesetFlag(QSurfaceFormat.FormatOption e, boolean on) Sets or clears the flagflagfinal voidsetValue(int value) Sets the value of this QFlags.final intvalue()Returns the value of this QFlags.
-
Constructor Details
-
FormatOptions
public FormatOptions()Creates a new FormatOptions. -
FormatOptions
Creates a new FormatOptions where the flags inargsare 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:
combinedin classQFlags<QSurfaceFormat.FormatOption>- Parameters:
e- enum entry- Returns:
- new FormatOptions
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QSurfaceFormat.FormatOption>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<QSurfaceFormat.FormatOption>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QSurfaceFormat.FormatOption>
-
compareTo
- Specified by:
compareToin interfaceComparable<QSurfaceFormat.FormatOptions>
-
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
-