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