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; }
42 void handleMouseEvent(ulong timestamp, QPointF movement, Qt::MouseButtons buttons,
43 Qt::KeyboardModifiers modifiers)
override;
46 void itemChange(ItemChange change,
const ItemChangeData &value)
override;
49 void registerWindow(QWindow *window);
52 QPointer<QWindow> m_registeredWindow;
59 #endif // MOUSEPOINTER_H