Home · All Classes · Main Classes · Deprecated |
All graphical items of a MeeGo Touch application are positioned in a Cartesian plane called a "scene". The scene is represented by the MScene
class. The X-axis expands from left to right and the Y-axis expands from top to bottom.
An MApplicationWindow only shows a rectangular area of the scene. The rectangle has its top left corner at "0, 0". Its width and height are equivalent to the horizontal and vertical pixel resolution of the device, respectively.
MScene and MApplicationWindow
Scene windows are the graphical items that comprise the high-level layout of a MeeGo Touch application. Virtually all graphical items in a standard MeeGo Touch application are held in a scene window. They are represented by the MSceneWindow
class. Scene windows in a scene correspond to top-level windows in a traditional desktop window system.
The basic scene windows of a MeeGo Touch application
A scene manager (MSceneManager
) controls the stacking order (Z-value) and geometry (position and size) of scene windows. When the device orientation changes, the scene manager rotates and repositions all the scene windows. In order to properly rotate the UI, all the scene windows of the scene manager are located inside a graphical item called root element (which means that it is the parent of all scene windows in the scene graph). The root element is rotated instead of the scene windows themselves. This means that scene windows are positioned in the root element's coordinate system, not in scene coordinates. MeeGo Touch defines four possible rotation angles for its UI: 0, 90, 180 and 270 degrees (clockwise).
A scene window at different orientation angles
MApplicationWindow
creates its own MScene
and MSceneManager
. It also automatically populates the scene with all the scene windows that comprise a standard MeeGo Touch GUI, such as a status bar, navigation bar, home button panel, and so one.
Copyright © 2010 Nokia Corporation | MeeGo Touch |