diff options
author | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-08-11 16:07:23 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-08-28 13:10:33 +0200 |
commit | e01b81339a37830c48f2cec0583e5d0aba592601 (patch) | |
tree | bd3085460c0139a10c5fd5d322b9059e6c97b5ee /src/compositor/compositor_api/qwaylandsurface.h | |
parent | bc331abe8e8ffaa3db12be7ae69e7b658dd700ac (diff) |
Remove QtWayland::Surface
Its enough to have QWaylandSurface and QWaylandSurfacePrivate. Also
don't pass QWaylandSurfacePrivate around, but pass QWaylandSurface and
then use the QWaylandSurfacePrivate::get function.
Change-Id: I915cc9d7b4497ad1c6f1f2dee61d9d0db069ba6b
Diffstat (limited to 'src/compositor/compositor_api/qwaylandsurface.h')
-rw-r--r-- | src/compositor/compositor_api/qwaylandsurface.h | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/src/compositor/compositor_api/qwaylandsurface.h b/src/compositor/compositor_api/qwaylandsurface.h index 17f585e73..45e4be94f 100644 --- a/src/compositor/compositor_api/qwaylandsurface.h +++ b/src/compositor/compositor_api/qwaylandsurface.h @@ -40,6 +40,7 @@ #include <QtCompositor/qwaylandexport.h> #include <QtCompositor/qwaylandextension.h> +#include <QtCompositor/qwaylandclient.h> #include <QtCore/QScopedPointer> #include <QtGui/QImage> @@ -59,12 +60,6 @@ class QWaylandBufferRef; class QWaylandView; class QWaylandSurfaceOp; -namespace QtWayland { -class Surface; -class SurfacePrivate; -class ExtendedSurface; -} - class Q_COMPOSITOR_EXPORT QWaylandSurface : public QObject, public QWaylandExtensionContainer { Q_OBJECT @@ -72,8 +67,6 @@ class Q_COMPOSITOR_EXPORT QWaylandSurface : public QObject, public QWaylandExten Q_PROPERTY(QWaylandClient *client READ client CONSTANT) Q_PROPERTY(QSize size READ size NOTIFY sizeChanged) Q_PROPERTY(Qt::ScreenOrientation contentOrientation READ contentOrientation NOTIFY contentOrientationChanged) - Q_PROPERTY(QString className READ className NOTIFY classNameChanged) - Q_PROPERTY(QString title READ title NOTIFY titleChanged) Q_PROPERTY(QWaylandSurface::Origin origin READ origin NOTIFY originChanged) Q_PROPERTY(bool isMapped READ isMapped NOTIFY mappedChanged) @@ -87,11 +80,8 @@ public: virtual ~QWaylandSurface(); QWaylandClient *client() const; + struct wl_client *waylandClient() const { return client()->client(); } - QWaylandSurface *parentSurface() const; - QLinkedList<QWaylandSurface *> subSurfaces() const; - - bool visible() const; bool isMapped() const; QSize size() const; @@ -100,21 +90,14 @@ public: Origin origin() const; - QtWayland::Surface *handle(); - - QByteArray authenticationToken() const; - QWaylandCompositor *compositor() const; - QString className() const; - - QString title() const; - bool hasInputPanelSurface() const; bool inputRegionContains(const QPoint &p) const; Q_INVOKABLE void destroy(); + bool isDestroyed() const; Q_INVOKABLE void sendFrameCallbacks(); @@ -145,19 +128,12 @@ Q_SIGNALS: void sizeChanged(); void offsetForNextFrame(const QPoint &offset); void contentOrientationChanged(); - void extendedSurfaceReady(); - void classNameChanged(); - void titleChanged(); - void raiseRequested(); - void lowerRequested(); void pong(); void surfaceDestroyed(); void originChanged(); void configure(bool hasBuffer); void redraw(); - - friend class QtWayland::Surface; }; QT_END_NAMESPACE |