summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs/qeglfsscreen.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2013-09-13 13:02:20 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-20 12:05:08 +0200
commitf89f099c55576992b39a8021aace64ff32747624 (patch)
treeedefe8cefb81d63ef60440608112ee67ad837960 /src/plugins/platforms/eglfs/qeglfsscreen.h
parentcfd52842492d12af26d897e0f893c80b2df5945a (diff)
eglfs: Support multiple raster windows
Allow widget apps with popups and multiple top-level widgets to function on the eglfs platform. GL and Quick2 apps are not affected. Instead of trying to create a native window and EGL surface for each window, do it only for the window that is created first. This first window is forced to fullscreen as usual. Later windows however are treated differently: These will not have a native window, surface or context, and keep their normal size. All the textures belonging to the raster windows are then rendered in one step, using a stacking order maintained based on visibility changes and window activation. Note that this will only help apps that create a main window first and have everything else inside that window or on top of it as menus, dialogs, popups, etc. Change-Id: Ia435458ba81bf3c35cc8f61bcb2d2a50cf17f0e3 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com> Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfsscreen.h')
-rw-r--r--src/plugins/platforms/eglfs/qeglfsscreen.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfsscreen.h b/src/plugins/platforms/eglfs/qeglfsscreen.h
index 06cafa20c8..bf7e88bd50 100644
--- a/src/plugins/platforms/eglfs/qeglfsscreen.h
+++ b/src/plugins/platforms/eglfs/qeglfsscreen.h
@@ -52,8 +52,9 @@ QT_BEGIN_NAMESPACE
class QPlatformOpenGLContext;
class QEglFSCursor;
+class QEglFSWindow;
-class QEglFSScreen : public QPlatformScreen //huh: FullScreenScreen ;) just to follow namespace
+class QEglFSScreen : public QPlatformScreen
{
public:
QEglFSScreen(EGLDisplay display);
@@ -73,6 +74,11 @@ public:
EGLDisplay display() const { return m_dpy; }
EGLSurface primarySurface() const { return m_surface; }
+ QList<QEglFSWindow *> windows() const { return m_windows; }
+ void addWindow(QEglFSWindow *window);
+ void removeWindow(QEglFSWindow *window);
+ QEglFSWindow *rootWindow();
+
protected:
void setPrimarySurface(EGLSurface surface);
@@ -82,6 +88,7 @@ private:
EGLDisplay m_dpy;
EGLSurface m_surface;
QEglFSCursor *m_cursor;
+ QList<QEglFSWindow *> m_windows;
};
QT_END_NAMESPACE