|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QGraphicsScene.SceneLayer>
com.trolltech.qt.gui.QGraphicsScene.SceneLayer
public static enum QGraphicsScene.SceneLayer
This enum describes the rendering layers in a QGraphicsScene. When QGraphicsScene draws the scene contents, it renders each of these layers separately, in order.
Each layer represents a flag that can be OR'ed together when calling functions such as invalidate or QGraphicsView::invalidateScene().
Enum Constant Summary | |
---|---|
AllLayers
All layers; this value represents a combination of all three layers. |
|
BackgroundLayer
The background layer. |
|
ForegroundLayer
The foreground layer. |
|
ItemLayer
The item layer. |
Method Summary | |
---|---|
static QGraphicsScene.SceneLayers |
createQFlags(QGraphicsScene.SceneLayer... values)
|
static QGraphicsScene.SceneLayer |
resolve(int value)
|
int |
value()
|
static QGraphicsScene.SceneLayer |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QGraphicsScene.SceneLayer[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final QGraphicsScene.SceneLayer ItemLayer
The item layer. QGraphicsScene renders all items are in this layer by calling the virtual function drawItems. The item layer is drawn after the background layer, but before the foreground layer.
public static final QGraphicsScene.SceneLayer BackgroundLayer
The background layer. QGraphicsScene renders the scene's background in this layer by calling the virtual function drawBackground. The background layer is drawn first of all layers.
public static final QGraphicsScene.SceneLayer ForegroundLayer
The foreground layer. QGraphicsScene renders the scene's foreground in this layer by calling the virtual function drawForeground. The foreground layer is drawn last of all layers.
public static final QGraphicsScene.SceneLayer AllLayers
All layers; this value represents a combination of all three layers.
Method Detail |
---|
public static final QGraphicsScene.SceneLayer[] values()
for(QGraphicsScene.SceneLayer c : QGraphicsScene.SceneLayer.values()) System.out.println(c);
public static QGraphicsScene.SceneLayer valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int value()
value
in interface QtEnumerator
public static QGraphicsScene.SceneLayers createQFlags(QGraphicsScene.SceneLayer... values)
public static QGraphicsScene.SceneLayer resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |