/usr/include/unity-2d-private/windowsintersectmonitor.h is in libunity-2d-private-dev 5.12.0-0ubuntu1.1.
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 54 55 | /*
* This file is part of unity-2d
*
* Copyright 2011 Canonical Ltd.
*
* Authors:
* - Aurélien Gâteau <aurelien.gateau@canonical.com>
* - Florian Boucault <florian.boucault@canonical.com>
* - Ugo Riboni <ugo.riboni@canonical.com>
*
* License: GPL v3
*/
#ifndef WINDOWSINTERSECTMONITOR_H
#define WINDOWSINTERSECTMONITOR_H
// Qt
#include <QObject>
#include <QRectF>
struct _WnckWindow;
class WindowsIntersectMonitor : public QObject
{
Q_OBJECT
Q_PROPERTY(QRectF monitoredArea READ monitoredArea WRITE setMonitoredArea
NOTIFY monitoredAreaChanged)
Q_PROPERTY(bool intersects READ intersects NOTIFY intersectsChanged)
public:
WindowsIntersectMonitor();
~WindowsIntersectMonitor();
QRectF monitoredArea() const;
void setMonitoredArea(const QRectF& monitoredArea);
bool intersects() const;
Q_SIGNALS:
void monitoredAreaChanged();
void intersectsChanged();
private Q_SLOTS:
void updateIntersect();
void updateActiveWindowConnections();
private:
Q_DISABLE_COPY(WindowsIntersectMonitor);
void disconnectFromGSignals();
struct _WnckWindow* m_activeWindow;
QRectF m_monitoredArea;
bool m_intersects;
};
#endif /* WINDOWSINTERSECTMONITOR_H */
|