|Home · All Classes · Main Classes · Deprecated|
All graphical items of a MeeGo Touch application are positioned in a Cartesian plane which we call "scene". The scene is represented by the
MScene class. The X-axis grows rightwards and the Y-axis downwards.
What is seen through an MApplicationWindow is just a rectangular area of that scene. This rectangle has its top left corner on (0, 0). Its width and height are equivalent to the device's horizontal and vertical pixel resolution, 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 of some type. They are represented by the
MSceneWindow class. Scene windows in a scene are analogous to top level windows in a traditional desktop windowing system.
The basic scene windows of a MeeGo Touch application
The stacking order (Z-value) and geometry (position and size) of scene windows are controlled by a scene manager (
MSceneManager). When the device orientation changes, the scene manager orchestrates the rotation and repositioning of all its scene windows. In order to properly rotate the UI, the scene manager have all its scene windows inside a graphical item called root element (meaning that it is the parent of all scene windows in the scene graph), which gets 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
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, etc.
|Copyright © 2010 Nokia Corporation||Generated on Thu Nov 4 2010 18:14:23 (PDT)