-
Constructor Summary
Constructors
Creates a new Flags with given value
.
Creates a new Flags where the flags in args
are set.
-
Method Summary
Combines this flags with enum entry.
final int
Returns an array of flag objects represented by this Flags.
Sets or clears the flag flag
final void
Sets the value of this QFlags.
final int
Returns the value of this QFlags.
Methods inherited from class io.qt.QFlags
clear, clear, clearAll, cleared, compare, equals, exclude, flags, hashCode, isSet, isSet, set, set, testAnyFlags, testAnyFlags, testFlag, testFlags, testFlags, toInt, toString
-
Constructor Details
-
Flags
public Flags()
Creates a new Flags.
-
Flags
Creates a new Flags where the flags in args
are set.
- Parameters:
args
- enum entries
-
Flags
public Flags(int value)
Creates a new Flags with given value
.
- Parameters:
value
-
-
Method Details
-
combined
Combines this flags with enum entry.
- Overrides:
combined
in class QFlags<QRhi.Flag>
- Parameters:
e
- enum entry
- Returns:
- new Flags
-
setFlag
Sets the flag e
- Overrides:
setFlag
in class QFlags<QRhi.Flag>
- Parameters:
e
- enum entry
- Returns:
- this
-
setFlag
Sets or clears the flag flag
- Overrides:
setFlag
in class QFlags<QRhi.Flag>
- Parameters:
e
- enum entry
on
- set (true) or clear (false)
- Returns:
- this
-
flags
Returns an array of flag objects represented by this Flags.
- Overrides:
flags
in class QFlags<QRhi.Flag>
- Returns:
- array of enum entries
-
-
-
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