java.lang.Object
io.qt.QFlags<QRhiShaderResourceBindings.UpdateFlag>
io.qt.gui.rhi.QRhiShaderResourceBindings.UpdateFlags
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QRhiShaderResourceBindings.UpdateFlags>
- Enclosing class:
QRhiShaderResourceBindings
public static final class QRhiShaderResourceBindings.UpdateFlags
extends QFlags<QRhiShaderResourceBindings.UpdateFlag>
implements Comparable<QRhiShaderResourceBindings.UpdateFlags>
QFlags
type for enum QRhiShaderResourceBindings.UpdateFlag
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new UpdateFlags.UpdateFlags
(int value) Creates a new UpdateFlags with givenvalue
.Creates a new UpdateFlags where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the flagsCombines this flags with enum entry.final int
flags()
Returns an array of flag objects represented by this UpdateFlags.Sets the flage
setFlag
(QRhiShaderResourceBindings.UpdateFlag 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
-
UpdateFlags
public UpdateFlags()Creates a new UpdateFlags. -
UpdateFlags
Creates a new UpdateFlags where the flags inargs
are set.- Parameters:
args
- enum entries
-
UpdateFlags
public UpdateFlags(int value) Creates a new UpdateFlags with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
public final QRhiShaderResourceBindings.UpdateFlags combined(QRhiShaderResourceBindings.UpdateFlag e) Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QRhiShaderResourceBindings.UpdateFlag>
- Parameters:
e
- enum entry- Returns:
- new UpdateFlags
-
setFlag
public final QRhiShaderResourceBindings.UpdateFlags setFlag(QRhiShaderResourceBindings.UpdateFlag e) Sets the flage
- Overrides:
setFlag
in classQFlags<QRhiShaderResourceBindings.UpdateFlag>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
public final QRhiShaderResourceBindings.UpdateFlags setFlag(QRhiShaderResourceBindings.UpdateFlag e, boolean on) Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QRhiShaderResourceBindings.UpdateFlag>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this UpdateFlags.- Overrides:
flags
in classQFlags<QRhiShaderResourceBindings.UpdateFlag>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QRhiShaderResourceBindings.UpdateFlag>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QRhiShaderResourceBindings.UpdateFlags>
-
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
-