5#ifndef DREGIONMONITOR_H_DWIDGET
6#define DREGIONMONITOR_H_DWIDGET
9#include <dtkwidget_global.h>
13DWIDGET_BEGIN_NAMESPACE
15class DRegionMonitorPrivate;
17 ,
public DTK_CORE_NAMESPACE::DObject
22 Q_PROPERTY(CoordinateType coordinateType READ coordinateType WRITE setCoordinateType NOTIFY coordinateTypeChanged)
38 bool registered()
const;
39 QRegion watchedRegion()
const;
40 CoordinateType coordinateType()
const;
43 void buttonPress(
const QPoint &p,
const int flag)
const;
44 void buttonRelease(
const QPoint &p,
const int flag)
const;
45 void cursorMove(
const QPoint &p)
const;
46 void keyPress(
const QString &keyname)
const;
47 void keyRelease(
const QString &keyname)
const;
48 void coordinateTypeChanged(CoordinateType type)
const;
51 void registerRegion();
52 inline void registerRegion(
const QRegion ®ion)
54 setWatchedRegion(region);
57 void unregisterRegion();
58 void setWatchedRegion(
const QRegion ®ion);
59 void setCoordinateType(CoordinateType type);