summaryrefslogtreecommitdiffstats
path: root/src/compositor/wayland_wrapper/wlsurface.h
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2012-01-04 10:26:20 +0100
committerJørgen Lind <jorgen.lind@nokia.com>2012-01-04 11:51:06 +0100
commita5ce91c023aeb433f1b5b792291a88c9a5683955 (patch)
tree9b576c2dcf57267ce00e08da7a1bf86e848a1293 /src/compositor/wayland_wrapper/wlsurface.h
parent1b7f1e42d18574ef610b709272f20b92dc7eda2e (diff)
Remove the geometry from the wayland surface
and add pos and size properties instead. The pos is a PointF while the size is a integer based Size since pos can be transformed, while the size reffers to the pixel size. Change-Id: I5d84aa6661405cb0df356b787246d0d73ad0c503 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/compositor/wayland_wrapper/wlsurface.h')
-rw-r--r--src/compositor/wayland_wrapper/wlsurface.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/compositor/wayland_wrapper/wlsurface.h b/src/compositor/wayland_wrapper/wlsurface.h
index 905ee535e..88bd15c26 100644
--- a/src/compositor/wayland_wrapper/wlsurface.h
+++ b/src/compositor/wayland_wrapper/wlsurface.h
@@ -84,8 +84,11 @@ public:
QImage image() const;
- QRect geometry() const;
- void setGeometry(const QRect &rect);
+ QPointF pos() const;
+ void setPos(const QPointF &pos);
+
+ QSize size() const;
+ void setSize(const QSize &size);
#ifdef QT_COMPOSITOR_WAYLAND_GL
GLuint textureId(QOpenGLContext *context) const;