You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
425 B

#ifndef MOUSETAP_H
#define MOUSETAP_H
#include <QRect>
class QWidget;
class MouseTap {
public:
static MouseTap* getInstance();
virtual void initMouseEventTap() = 0;
virtual void quitMouseEventTap() = 0;
// rc base global screenspace coordinate system, which has a flipped Y.
virtual void enableMouseEventTap(QRect rc, bool enabled) = 0;
private:
static MouseTap *s_instance;
};
#endif // MOUSETAP_H