- 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
ConstructorDescriptionSceneLayers
(int value) Creates a new SceneLayers with givenvalue
.SceneLayers
(QGraphicsScene.SceneLayer ... args) Creates a new SceneLayers where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the flagsCombines this flags with enum entry.final int
final QGraphicsScene.SceneLayer []
flags()
Returns an array of flag objects represented by this SceneLayers.Sets the flage
setFlag
(QGraphicsScene.SceneLayer e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
SceneLayers
Creates a new SceneLayers where the flags inargs
are 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:
combined
in classQFlags<QGraphicsScene.SceneLayer>
- Parameters:
e
- enum entry- Returns:
- new SceneLayers
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QGraphicsScene.SceneLayer>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in 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:
flags
in classQFlags<QGraphicsScene.SceneLayer>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QGraphicsScene.SceneLayer>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QGraphicsScene.SceneLayers>
-