Home · All Classes · Main Classes · Deprecated
Public Member Functions

MScene Class Reference

MScene is the scene graph of MeeGo Touch UI applications. More...

Inheritance diagram for MScene:
Inheritance graph
[legend]
Collaboration diagram for MScene:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MScene (QObject *parent=0)
virtual ~MScene ()
MSceneManagersceneManager ()

Detailed Description

MScene is the scene graph of MeeGo Touch UI applications.

The scene of an application is a virtual infinite surface on which primitive items or full featured widgets can be placed. For general information of how the scene functions, please refer to the QGraphicsScene documentation.

MScene inherits from and extends QGraphicsScene with the following features:

See also:
MWindow, MApplicationWindow

Definition at line 58 of file corelib/scene/mscene.h.


Constructor & Destructor Documentation

MScene::MScene ( QObject parent = 0  )  [explicit]

Constructs a MScene.

Definition at line 429 of file mscene.cpp.

    : QGraphicsScene(parent),
      d_ptr(new MScenePrivate)
{
    Q_D(MScene);

    d->q_ptr = this;
    d->manager = 0;
    QColor fpsBackgroundColor(FpsBackgroundColor);
    fpsBackgroundColor.setAlphaF(FpsBackgroundOpacity);
    d->fpsBackgroundBrush = QBrush(fpsBackgroundColor);

    QColor boundingRectLineColor(BoundingRectLineColor);
    d->boundingRectLinePen = QPen(boundingRectLineColor);

    QColor boundingRectFillColor(BoundingRectFillColor);
    d->boundingRectFillBrush = QBrush(boundingRectFillColor);

    setItemIndexMethod(QGraphicsScene::NoIndex);
}

Here is the call graph for this function:

MScene::~MScene (  )  [virtual]

Destroys the MScene.

Definition at line 450 of file mscene.cpp.

{
    delete d_ptr;
}


Member Function Documentation

MSceneManager * MScene::sceneManager (  ) 

Returns the scene manager of the scene.

Note that the scene manager is not owned by the scene, instead it's the scene that is owned by the scene manager.

If no manager has been assigned, 0 is returned.

Definition at line 455 of file mscene.cpp.

{
    Q_D(MScene);

    return d->manager;
}


Copyright © 2010 Nokia Corporation Generated on Thu Nov 4 2010 18:14:26 (PDT)
Doxygen 1.7.1
MeeGo Touch