- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SceneLayers(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 Type Method Description QGraphicsScene.SceneLayers
clone()
Clones the flagsQGraphicsScene.SceneLayers
combined(QGraphicsScene.SceneLayer e)
Combines this flags with enum entry.int
compareTo(QGraphicsScene.SceneLayers other)
QGraphicsScene.SceneLayer[]
flags()
Returns an array of flag objects represented by this SceneLayers.QGraphicsScene.SceneLayers
setFlag(QGraphicsScene.SceneLayer e)
Sets the flage
QGraphicsScene.SceneLayers
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>
-