/usr/include/libdtk-2.0.7/DWidget/dregionmonitor.h is in libdtkwidget-dev 2.0.7.2-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | #ifndef DREGIONMONITOR_H
#define DREGIONMONITOR_H
#include "dobject.h"
#include "dtkwidget_global.h"
#include <QObject>
DWIDGET_BEGIN_NAMESPACE
class DRegionMonitorPrivate;
class DRegionMonitor : public QObject, public DTK_CORE_NAMESPACE::DObject
{
Q_OBJECT
D_DECLARE_PRIVATE(DRegionMonitor)
Q_DISABLE_COPY(DRegionMonitor)
public:
explicit DRegionMonitor(QObject *parent = nullptr);
enum WatchedFlags
{
Button_Left = 1,
Button_Right = 3,
};
bool registered() const;
QRegion watchedRegion() const;
Q_SIGNALS:
void buttonPress(const QPoint &p, const int flag) const;
void buttonRelease(const QPoint &p, const int flag) const;
void cursorMove(const QPoint &p) const;
void keyPress(const QString &keyname) const;
void keyRelease(const QString &keyname) const;
public Q_SLOTS:
void registerRegion();
inline void registerRegion(const QRegion ®ion) { setWatchedRegion(region); registerRegion(); }
void unregisterRegion();
void setWatchedRegion(const QRegion ®ion);
private:
Q_PRIVATE_SLOT(d_func(), void _q_ButtonPress(const int, const int, const int, const QString&))
Q_PRIVATE_SLOT(d_func(), void _q_ButtonRelease(const int, const int, const int, const QString&))
Q_PRIVATE_SLOT(d_func(), void _q_CursorMove(const int, const int, const QString &))
Q_PRIVATE_SLOT(d_func(), void _q_KeyPress(const QString &, const int, const int, const QString &))
Q_PRIVATE_SLOT(d_func(), void _q_KeyRelease(const QString &, const int, const int, const QString &))
};
DWIDGET_END_NAMESPACE
#endif // DREGIONMONITOR_H
|