diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2011-03-21 15:09:33 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2011-03-21 15:09:33 (GMT) |
commit | f464bef8b0d8cd30a3c795558e5a7b28635ac057 (patch) | |
tree | 01c17f782a3b79cf71656c6910432ca43d4557d5 /src/plugins/platforms/wayland/qwaylandwindow.h | |
parent | 0112a4ce3980bfaf5a3e45a5f77cf65700db5436 (diff) | |
parent | 86ceda033eda6bd615134f71b9850081a0c808c9 (diff) | |
download | Qt-f464bef8b0d8cd30a3c795558e5a7b28635ac057.zip Qt-f464bef8b0d8cd30a3c795558e5a7b28635ac057.tar.gz Qt-f464bef8b0d8cd30a3c795558e5a7b28635ac057.tar.bz2 |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src/plugins/platforms/wayland/qwaylandwindow.h')
-rw-r--r-- | src/plugins/platforms/wayland/qwaylandwindow.h | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandwindow.h b/src/plugins/platforms/wayland/qwaylandwindow.h index 8b047d7..3b51ee7 100644 --- a/src/plugins/platforms/wayland/qwaylandwindow.h +++ b/src/plugins/platforms/wayland/qwaylandwindow.h @@ -45,35 +45,38 @@ #include <QtGui/QPlatformWindow> #include <stdint.h> +#include "qwaylanddisplay.h" class QWaylandDisplay; class QWaylandBuffer; +struct wl_egl_window; class QWaylandWindow : public QPlatformWindow { public: + enum WindowType { + Shm, + Egl + }; + QWaylandWindow(QWidget *window); ~QWaylandWindow(); - struct wl_surface *surface() { return mSurface; } + virtual WindowType windowType() const = 0; + WId winId() const; void setVisible(bool visible); + void setParent(const QPlatformWindow *parent); + void configure(uint32_t time, uint32_t edges, int32_t x, int32_t y, int32_t width, int32_t height); - WId winId() const; - void setParent(const QPlatformWindow *parent); - QPlatformGLContext *glContext() const; - void attach(QWaylandBuffer *buffer); - QWaylandBuffer *getBuffer(void) { return mBuffer; } - QWaylandWindow *getParentWindow(void) { return mParentWindow; } -private: +protected: struct wl_surface *mSurface; + virtual void newSurfaceCreated() = 0; QWaylandDisplay *mDisplay; - QPlatformGLContext *mGLContext; WId mWindowId; - QWaylandBuffer *mBuffer; - QWaylandWindow *mParentWindow; + }; |