File indexing completed on 2024-04-21 05:25:18

0001 /*
0002  * Copyright 2021 Aditya Mehra <aix.m@outlook.com>
0003  *
0004  * Licensed under the Apache License, Version 2.0 (the "License");
0005  * you may not use this file except in compliance with the License.
0006  * You may obtain a copy of the License at
0007  *
0008  *    http://www.apache.org/licenses/LICENSE-2.0
0009  *
0010  * Unless required by applicable law or agreed to in writing, software
0011  * distributed under the License is distributed on an "AS IS" BASIS,
0012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0013  * See the License for the specific language governing permissions and
0014  * limitations under the License.
0015  *
0016  */
0017 
0018 #ifndef EMULATEDMOUSE_H
0019 #define EMULATEDMOUSE_H
0020 
0021 #include <QQmlApplicationEngine>
0022 #include <QQmlContext>
0023 #include <QMouseEvent>
0024 
0025 class EmulatedMouse : public QObject
0026 {
0027       Q_OBJECT
0028 
0029 public:
0030     explicit EmulatedMouse(QObject* parent=nullptr);
0031 
0032 public Q_SLOTS:
0033     void moveMouseEvent(int posX, int posY);
0034     void mouseClickEvent();
0035 };
0036 
0037 #endif