summaryrefslogtreecommitdiffstats
path: root/src/compositor/wayland_wrapper/wlsurface.h
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2011-12-21 09:03:49 +0100
committerAndy Nichols <andy.nichols@nokia.com>2011-12-22 15:55:49 +0100
commit35f4eeb5c9e5994124d1eb9dbebe2edd6912be8b (patch)
tree2fabef5ab63a7eccf00eec7bf7a2520456c31a7e /src/compositor/wayland_wrapper/wlsurface.h
parentd203e39441bbc5fdc9d340540e157eb06e7761b0 (diff)
Make it possible to hide surfaces
Change-Id: Ie3ba75335717e8dbae906c1a13cc8f852b77bd1b Reviewed-by: Andy Nichols <andy.nichols@nokia.com>
Diffstat (limited to 'src/compositor/wayland_wrapper/wlsurface.h')
-rw-r--r--src/compositor/wayland_wrapper/wlsurface.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/compositor/wayland_wrapper/wlsurface.h b/src/compositor/wayland_wrapper/wlsurface.h
index b994ae94a..425e3ce88 100644
--- a/src/compositor/wayland_wrapper/wlsurface.h
+++ b/src/compositor/wayland_wrapper/wlsurface.h
@@ -77,10 +77,9 @@ public:
WaylandSurface::Type type() const;
bool isYInverted() const;
- uint id() const { return base()->resource.object.id; }
- void attach(struct wl_resource *buffer);
+ bool visible() const;
- void damage(const QRect &rect);
+ uint id() const { return base()->resource.object.id; }
QImage image() const;
@@ -127,6 +126,9 @@ protected:
QScopedPointer<SurfacePrivate> d_ptr;
private:
Q_DISABLE_COPY(Surface)
+ void attach(struct wl_buffer *buffer);
+ void damage(const QRect &rect);
+
static void surface_destroy(struct wl_client *client, struct wl_resource *_surface);
static void surface_attach(struct wl_client *client, struct wl_resource *surface,
struct wl_resource *buffer, int x, int y);