4#ifndef QWAYLANDCURSOR_H
5#define QWAYLANDCURSOR_H
18#include <qpa/qplatformcursor.h>
20#include <QtWaylandClient/qtwaylandclientglobal.h>
21#include <QtWaylandClient/private/qwayland-cursor-shape-v1.h>
22#include <QtCore/private/qglobal_p.h>
29struct wl_cursor_image;
30struct wl_cursor_theme;
41class Q_WAYLANDCLIENT_EXPORT QWaylandCursorTheme
45 ~QWaylandCursorTheme();
77 ResizeNorthWestCursor,
78 ResizeSouthEastCursor,
79 ResizeNorthEastCursor,
80 ResizeSouthWestCursor,
85 explicit QWaylandCursorTheme(struct ::wl_cursor_theme *theme) : m_theme(theme) {}
86 struct ::wl_cursor *requestCursor(WaylandCursor shape);
87 struct ::wl_cursor_theme *m_theme =
nullptr;
88 wl_cursor *m_cursors[NumWaylandCursors] = {};
91class Q_WAYLANDCLIENT_EXPORT QWaylandCursorShape :
public QtWayland::wp_cursor_shape_device_v1
94 QWaylandCursorShape(struct ::wp_cursor_shape_device_v1 *
object);
95 ~QWaylandCursorShape();
102 explicit QWaylandCursor(QWaylandDisplay *
display);
112 QWaylandDisplay *mDisplay =
nullptr;
The QCursor class provides a mouse cursor with an arbitrary shape.
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
struct wl_display * display
Combined button and popup list for selecting options.
static QString themeName()
GLenum GLuint GLintptr GLsizeiptr size
[1]