- All Implemented Interfaces:
Serializable,Cloneable,Comparable<QQuickPaintedItem.PerformanceHints>
- Enclosing class:
QQuickPaintedItem
public static final class QQuickPaintedItem.PerformanceHints
extends QFlags<QQuickPaintedItem.PerformanceHint>
implements Comparable<QQuickPaintedItem.PerformanceHints>
QFlags type for enum QQuickPaintedItem.PerformanceHint- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new PerformanceHints.PerformanceHints(int value) Creates a new PerformanceHints with givenvalue.Creates a new PerformanceHints where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the flagsCombines this flags with enum entry.final intfinal QQuickPaintedItem.PerformanceHint []flags()Returns an array of flag objects represented by this PerformanceHints.Sets the flagesetFlag(QQuickPaintedItem.PerformanceHint 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
-
PerformanceHints
public PerformanceHints()Creates a new PerformanceHints. -
PerformanceHints
Creates a new PerformanceHints where the flags inargsare set.- Parameters:
args- enum entries
-
PerformanceHints
public PerformanceHints(int value) Creates a new PerformanceHints with givenvalue.- Parameters:
value-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combinedin classQFlags<QQuickPaintedItem.PerformanceHint>- Parameters:
e- enum entry- Returns:
- new PerformanceHints
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QQuickPaintedItem.PerformanceHint>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
public final QQuickPaintedItem.PerformanceHints setFlag(QQuickPaintedItem.PerformanceHint e, boolean on) Sets or clears the flagflag- Overrides:
setFlagin classQFlags<QQuickPaintedItem.PerformanceHint>- Parameters:
e- enum entryon- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this PerformanceHints.- Overrides:
flagsin classQFlags<QQuickPaintedItem.PerformanceHint>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QQuickPaintedItem.PerformanceHint>
-
compareTo
- Specified by:
compareToin interfaceComparable<QQuickPaintedItem.PerformanceHints>
-
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
-