17 #ifndef MOUSEPOINTER_H 18 #define MOUSEPOINTER_H 26 #include <unity/shell/application/MirMousePointerInterface.h> 28 class MousePointer :
public MirMousePointerInterface {
31 MousePointer(QQuickItem *parent =
nullptr);
33 void setCursorName(
const QString &qtCursorName)
override;
34 QString cursorName()
const override {
return m_cursorName; }
36 void setThemeName(
const QString &themeName)
override;
37 QString themeName()
const override {
return m_themeName; }
39 void setCustomCursor(
const QCursor &)
override;
42 void handleMouseEvent(ulong timestamp, QPointF movement, Qt::MouseButtons buttons,
43 Qt::KeyboardModifiers modifiers)
override;
44 void handleWheelEvent(ulong timestamp, QPoint angleDelta, Qt::KeyboardModifiers modifiers)
override;
47 void pushedLeftBoundary(qreal amount, Qt::MouseButtons buttons);
48 void pushedRightBoundary(qreal amount, Qt::MouseButtons buttons);
52 void itemChange(ItemChange change,
const ItemChangeData &value)
override;
55 void registerScreen(QScreen *screen);
58 void registerWindow(QWindow *window);
60 QPointer<QWindow> m_registeredWindow;
61 QPointer<QScreen> m_registeredScreen;
66 QPointF m_accumulatedMovement;
69 #endif // MOUSEPOINTER_H