17#ifndef MOUSEEVENTGENERATOR_H
18#define MOUSEEVENTGENERATOR_H
23#include "LomiriGesturesQmlGlobal.h"
27class LOMIRIGESTURESQML_EXPORT MouseEventGenerator :
public QObject {
29 Q_PROPERTY(QQuickItem* targetItem MEMBER m_targetItem NOTIFY targetItemChanged)
32 MouseEventGenerator(QObject *parent =
nullptr);
34 Q_INVOKABLE
void move(
const QPointF position);
35 Q_INVOKABLE
void press(
const QPointF position);
36 Q_INVOKABLE
void release(
const QPointF position);
39 void targetItemChanged(QQuickItem *);
42 bool m_mousePressed {
false};
43 QQuickItem *m_targetItem {
nullptr};
45 friend class tst_FloatingFlickable;