Add XComposite extension to wayland
[profile/ivi/qtwayland.git] / src / qt-compositor / hardware_integration / xcomposite_share / xcompositebuffer.h
1 #ifndef XCOMPOSITEBUFFER_H
2 #define XCOMPOSITEBUFFER_H
3
4 #include "waylandobject.h"
5 #include "wayland_wrapper/wlcompositor.h"
6
7 #include <QtCore/QSize>
8
9 #include <QtCore/QTextStream>
10 #include <QtCore/QDataStream>
11 #include <QtCore/QMetaType>
12 #include <QtCore/QVariant>
13 #include <QtGui/QWidget>
14
15 #include <X11/X.h>
16
17 class XCompositeBuffer : public Wayland::Object<struct wl_buffer>
18 {
19 public:
20     XCompositeBuffer(Wayland::Compositor *compositor, Window window, const QSize &size, struct wl_visual *visual);
21
22     Window window();
23
24     static struct wl_buffer_interface buffer_interface;
25     static void delete_resource(struct wl_resource *resource,
26                                         struct wl_client *client);
27 private:
28     Window mWindow;
29
30     static void buffer_interface_destroy(struct wl_client *client,
31                         struct wl_buffer *buffer);
32 };
33
34 #endif // XCOMPOSITORBUFFER_H