diff options
author | Bocklage, Jens <Jens_Bocklage@mentor.com> | 2016-11-03 20:23:10 +0100 |
---|---|---|
committer | Bocklage, Jens <Jens_Bocklage@mentor.com> | 2016-11-03 20:23:10 +0100 |
commit | ec688535558c31989e7da221b858328b2e0766c8 (patch) | |
tree | 4ca00a485bdb4ecd8aebe87398e324510400b4c0 /HomeScreen/src/homescreencontrolinterface.cpp | |
parent | 6656309e1ddf27c3e62fe5d599bee2beeddcbff1 (diff) |
New concept of dynamically placing surfaces in static defined layout areas.v0.4.0
This is useful if an application wants to render more than one surface.
By default, one surface is placed in one layout render area. With the new homescreen.xml
introspection, apps can place their surfaces as they wish (limited to the boundries
of the assigned layou render area!).
The functionality is not fully implemented, but the shared lib already provides the interface.
Signed-off-by: Bocklage, Jens <Jens_Bocklage@mentor.com>
Diffstat (limited to 'HomeScreen/src/homescreencontrolinterface.cpp')
-rw-r--r-- | HomeScreen/src/homescreencontrolinterface.cpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/HomeScreen/src/homescreencontrolinterface.cpp b/HomeScreen/src/homescreencontrolinterface.cpp index 057e742..bc66e53 100644 --- a/HomeScreen/src/homescreencontrolinterface.cpp +++ b/HomeScreen/src/homescreencontrolinterface.cpp @@ -24,6 +24,12 @@ HomeScreenControlInterface::~HomeScreenControlInterface() delete mp_homeScreenAdaptor; } +QRect HomeScreenControlInterface::getLayoutRenderAreaForSurfaceId(int surfaceId) +{ + qDebug("getLayoutRenderAreaForSurfaceId %d", surfaceId); + return newRequestGetLayoutRenderAreaForSurfaceId(surfaceId); +} + void HomeScreenControlInterface::hardKeyPressed(int key) { int pid = -1; @@ -42,8 +48,14 @@ void HomeScreenControlInterface::hardKeyPressed(int key) } } -void HomeScreenControlInterface::toggleFullScreen() +void HomeScreenControlInterface::renderSurfaceToArea(int surfaceId, const QRect &renderArea) +{ + qDebug("requestSurfaceIdToFullScreen %d", surfaceId); + newRequestRenderSurfaceToArea(surfaceId, renderArea); +} + +void HomeScreenControlInterface::requestSurfaceIdToFullScreen(int surfaceId) { - qDebug("toggleFullScreen"); - newRequestsToggleFullscreen(); + qDebug("requestSurfaceIdToFullScreen %d", surfaceId); + newRequestSurfaceIdToFullScreen(surfaceId); } |