17 #ifndef MOUSEPOINTER_H
18 #define MOUSEPOINTER_H
25 #include <unity/shell/application/MirMousePointerInterface.h>
27 class MousePointer :
public MirMousePointerInterface {
30 MousePointer(QQuickItem *parent =
nullptr);
32 void setCursorName(
const QString &qtCursorName)
override;
33 QString cursorName()
const override {
return m_cursorName; }
35 void setThemeName(
const QString &themeName)
override;
36 QString themeName()
const override {
return m_themeName; }
38 qreal hotspotX()
const override {
return m_hotspotX; }
39 qreal hotspotY()
const override {
return m_hotspotY; }
41 void setCustomCursor(
const QCursor &)
override;
44 void handleMouseEvent(ulong timestamp, QPointF movement, Qt::MouseButtons buttons,
45 Qt::KeyboardModifiers modifiers)
override;
46 void handleWheelEvent(ulong timestamp, QPoint angleDelta, Qt::KeyboardModifiers modifiers)
override;
49 void pushedLeftBoundary(qreal amount, Qt::MouseButtons buttons);
50 void pushedRightBoundary(qreal amount, Qt::MouseButtons buttons);
53 void itemChange(ItemChange change,
const ItemChangeData &value)
override;
56 void registerWindow(QWindow *window);
59 QPointer<QWindow> m_registeredWindow;
66 #endif // MOUSEPOINTER_H