- isFullScreen = false;
- associatedFullScreenLayout = -1;
-
- mp_dBusWindowManagerProxy->addLayout(2, "top on bottom", isFullScreen, associatedFullScreenLayout, surfaceAreas);
-
-
- surfaceAreas.clear();
-
- // layout 3:
- // two app surfaces (one besides the other), statusbar, control bar
-
- // left surface
- surfaceArea.x = 0;
- surfaceArea.y = STATUSBAR_HEIGHT;
- surfaceArea.width = SCREEN_WIDTH / 2;
- surfaceArea.height = SCREEN_HEIGHT - STATUSBAR_HEIGHT - CONTROLBAR_HEIGHT;
-
- surfaceAreas.append(surfaceArea);
-
- // right surface
- surfaceArea.x = SCREEN_WIDTH / 2;
- surfaceArea.y = STATUSBAR_HEIGHT;
- surfaceArea.width = SCREEN_WIDTH / 2;
- surfaceArea.height = SCREEN_HEIGHT - STATUSBAR_HEIGHT - CONTROLBAR_HEIGHT;
-
- surfaceAreas.append(surfaceArea);
-
- isFullScreen = false;
- associatedFullScreenLayout = -1;
-
- mp_dBusWindowManagerProxy->addLayout(3, "side by side", isFullScreen, associatedFullScreenLayout, surfaceAreas);
-
-
- surfaceAreas.clear();
-
- // layout 4:
- // one app surface full screen, no statusbar, no control bar
- surfaceArea.x = 0;
- surfaceArea.y = 0;
- surfaceArea.width = SCREEN_WIDTH;
- surfaceArea.height = SCREEN_HEIGHT;
-
- surfaceAreas.append(surfaceArea);
-
- isFullScreen = true;
- associatedFullScreenLayout = 1;
-
- mp_dBusWindowManagerProxy->addLayout(4, "one app full screen", isFullScreen, associatedFullScreenLayout, surfaceAreas);