4#ifndef QEGLFSKMSGBMCURSOR_H
5#define QEGLFSKMSGBMCURSOR_H
18#include <qpa/qplatformcursor.h>
19#include <QtCore/QList>
20#include <QtGui/QImage>
21#include <QtGui/private/qinputdevicemanager_p.h>
27class QEglFSKmsGbmScreen;
56 void changeCursor(QCursor * windowCursor, QWindow * window)
override;
59 void setPos(
const QPoint &pos)
override;
65 QEglFSKmsGbmScreen *
screen()
const {
return m_screen; }
68 void initCursorAtlas();
78 QEglFSKmsGbmScreen *m_screen;
82 QPlatformCursorImage m_cursorImage;
88 CursorAtlas() : cursorsPerRow(0), cursorWidth(0), cursorHeight(0) { }
91 int cursorWidth, cursorHeight;
92 QList<QPoint> hotSpots;
void pointerEvent(const QMouseEvent &event) override
This method is called by Qt whenever a QMouseEvent is generated by the underlying pointer input.
void changeCursor(QCursor *windowCursor, QWindow *window) override
This method is called by Qt whenever the cursor graphic should be changed.
void setPos(const QPoint &pos) override
void reevaluateVisibilityForScreens()
QPoint pos() const override
QEglFSKmsGbmScreen * screen() const
#define DRM_CAP_CURSOR_HEIGHT
#define DRM_CAP_CURSOR_WIDTH