diff options
Diffstat (limited to 'windowmanager/src/windowmanager.hpp')
-rw-r--r-- | windowmanager/src/windowmanager.hpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/windowmanager/src/windowmanager.hpp b/windowmanager/src/windowmanager.hpp index 12643e7..a06f840 100644 --- a/windowmanager/src/windowmanager.hpp +++ b/windowmanager/src/windowmanager.hpp @@ -26,6 +26,7 @@ #ifdef HAVE_IVI_LAYERMANAGEMENT_API #include <ilm/ilm_control.h> #endif + class WindowManager : public QObject { Q_OBJECT @@ -43,12 +44,15 @@ private: int m_currentLayout; int m_screenId; - unsigned int m_screenWidth; - unsigned int m_screenHeight; + QSize m_screen; void dumpScene(); #ifdef HAVE_IVI_LAYERMANAGEMENT_API + /* The geometry of layer as destination|source */ + QRect m_layerSrc; + QRect m_layerDest; + t_ilm_layer* m_showLayers; QMap<pid_t, t_ilm_surface> m_appSurfaces; QMap<pid_t, t_ilm_layer> m_appLayers; @@ -59,20 +63,22 @@ private: QList<QString> m_keepApps; /* Apps needs to keep rendering */ QList<pid_t> m_bgApps; + pid_t m_pending_to_show; + + void setRootGeometry(const char *mode); + t_ilm_layer* getLayerRenderOrder(int& num_layers); void createNewLayer(const int layerId); t_ilm_layer getAppLayerID(const pid_t pid); - pid_t m_pending_to_show; - void addSurface(const t_ilm_surface surfaceId); t_ilm_layer addSurfaceToAppLayer(pid_t pid, const int surfaceId); void addSurfaceToLayer(const int surfaceId, const int layerId); - void configureHomeScreenMainSurface(const t_ilm_surface surface, const t_ilm_int width, const t_ilm_int height); - void configureAppSurface(const pid_t pid, const t_ilm_surface surface, const t_ilm_int width, const t_ilm_int height); + void configureHomeScreenMainSurface(const t_ilm_surface surface, const t_ilm_uint width, const t_ilm_uint height); + void configureAppSurface(const t_ilm_surface surface, const t_ilm_uint width, const t_ilm_uint height); void renderLayers(); void checkBackgroundApps(const QString &app_id, int app_pid); |