File indexing completed on 2024-04-21 16:18:22

0001 /*
0002  * SPDX-FileCopyrightText: 2017 Aetf <aetf@unlimitedcodeworks.xyz>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  *
0006  */
0007 
0008 #ifndef MOUSEHELPER_H
0009 #define MOUSEHELPER_H
0010 
0011 #include <QObject>
0012 #include <QPoint>
0013 
0014 #include "milou_export.h"
0015 
0016 namespace Milou
0017 {
0018 class MILOU_EXPORT MouseHelper : public QObject
0019 {
0020     Q_OBJECT
0021 
0022 public:
0023     explicit MouseHelper(QObject *parent = nullptr);
0024     ~MouseHelper() override;
0025 
0026     Q_INVOKABLE QPointF globalMousePosition() const;
0027 };
0028 
0029 }
0030 #endif // MOUSEHELPER_H