CCIMXDesktop
 
Loading...
Searching...
No Matches
MouseManager.h
1#ifndef MOUSEMANAGER_H
2#define MOUSEMANAGER_H
3#include <QList>
4#include <QPoint>
5#include <memory>
7class MouseRecorder;
8
10public:
13 Q_DISABLE_COPY_MOVE(MouseManager);
14 enum class PointType {
15 Press,
16 Release
17 };
18
19 void register_processor(MouseProcessor* new_processor);
20 void install_mousepoint(const QPoint& point, PointType pointType);
21 void install_mousepoint(QPoint&& point, PointType pointType);
22 bool run_processor();
23
24private:
25 std::shared_ptr<MouseRecorder> recorder;
26 QList<std::shared_ptr<MouseProcessor>> processor_recorders;
27 MouseProcessor* head_processor { nullptr };
28};
29
30#endif // MOUSEMANAGER_H
Definition MouseManager.h:9
Definition MouseProcessor.h:7
The MouseRecorder class plain struct for recording mouse.
Definition MouseRecorder.h:9