summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wayland/qwaylandcursor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/wayland/qwaylandcursor.h')
-rw-r--r--src/plugins/platforms/wayland/qwaylandcursor.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandcursor.h b/src/plugins/platforms/wayland/qwaylandcursor.h
index 4409eea828..8753aa5698 100644
--- a/src/plugins/platforms/wayland/qwaylandcursor.h
+++ b/src/plugins/platforms/wayland/qwaylandcursor.h
@@ -48,13 +48,23 @@ class QWaylandShmBuffer;
class QWaylandDisplay;
class QWaylandScreen;
-class QWaylandCursor : QPlatformCursor {
+class QWaylandCursor : public QPlatformCursor
+{
public:
QWaylandCursor(QWaylandScreen *screen);
void changeCursor(QCursor *cursor, QWindow *window);
+ void pointerEvent(const QMouseEvent &event);
+ QPoint pos() const;
+ void setPos(const QPoint &pos);
+
+ void setupPixmapCursor(QCursor *cursor);
+
QWaylandShmBuffer *mBuffer;
QWaylandDisplay *mDisplay;
+
+private:
+ QPoint mLastPos;
};
#endif // QWAYLANDCURSOR_H