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