42 #ifndef QWAYLANDDISPLAY_H 43 #define QWAYLANDDISPLAY_H 45 #include <QtCore/QObject> 46 #include <QtCore/QRect> 48 #include <QtCore/QWaitCondition> 50 #include <wayland-client.h> 71 struct wl_visual *visual);
76 #ifdef QT_WAYLAND_GL_SUPPORT 80 #ifdef QT_WAYLAND_WINDOWMANAGER_SUPPORT 87 void frameCallback(wl_display_frame_func_t func,
struct wl_surface *surface,
void *data);
126 const char *interface,
127 uint32_t version,
void *data);
129 struct wl_output *output,
130 int32_t x, int32_t y,
131 int32_t width, int32_t height,
135 static void mode(
void *data,
136 struct wl_output *wl_output,
143 struct wl_compositor *compositor,
144 uint32_t
id, uint32_t token);
145 #ifdef QT_WAYLAND_GL_SUPPORT 149 #ifdef QT_WAYLAND_WINDOWMANAGER_SUPPORT 154 uint32_t time, uint32_t edges,
155 struct wl_surface *surface,
156 int32_t width, int32_t height);
161 #endif // QWAYLANDDISPLAY_H
static void mode(void *data, struct wl_output *wl_output, uint32_t flags, int width, int height, int refresh)
static const struct wl_output_listener outputListener
void createNewScreen(struct wl_output *output, QRect geometry)
void displayHandleGlobal(uint32_t id, const QByteArray &interface, uint32_t version)
struct wl_visual * rgbVisual()
The QByteArray class provides an array of bytes.
static void handleVisual(void *data, struct wl_compositor *compositor, uint32_t id, uint32_t token)
struct wl_compositor * mCompositor
struct wl_visual * argbVisual()
static void outputHandleGeometry(void *data, struct wl_output *output, int32_t x, int32_t y, int32_t width, int32_t height, int subpixel, const char *make, const char *model)
QList< QPlatformScreen * > mScreens
void blockingReadEvents()
The QObject class is the base class of all Qt objects.
static const struct wl_shell_listener shellListener
The QSocketNotifier class provides support for monitoring activity on a file descriptor.
struct wl_visual * argbPremultipliedVisual()
Q_GUI_EXPORT EGLDisplay display()
void frameCallback(wl_display_frame_func_t func, struct wl_surface *surface, void *data)
void setCursor(QWaylandBuffer *buffer, int32_t x, int32_t y)
struct wl_surface * createSurface(void *handle)
QList< QWaylandInputDevice * > mInputDevices
static const char * data(const QByteArray &arr)
QList< QPlatformScreen * > screens() const
static int sourceUpdate(uint32_t mask, void *data)
void syncCallback(wl_display_sync_func_t func, void *data)
struct wl_shell * wl_shell() const
struct wl_visual * argb_visual
The QRect class defines a rectangle in the plane using integer precision.
struct wl_visual * premultiplied_argb_visual
static void shellHandleConfigure(void *data, struct wl_shell *shell, uint32_t time, uint32_t edges, struct wl_surface *surface, int32_t width, int32_t height)
QSocketNotifier * mReadNotifier
static const struct wl_compositor_listener compositorListener
struct wl_display * mDisplay
QList< QWaylandInputDevice * > inputDevices() const
struct wl_buffer * createShmBuffer(int fd, int width, int height, uint32_t stride, struct wl_visual *visual)
The QList class is a template class that provides lists.
struct wl_display * wl_display() const
struct wl_visual * rgb_visual