Debian Codegraph @

xcb/libqt5xcbqpa-dev/5.3.0/qxcbxsettings.h

raw
1 // Copyright (C) 2016 The Qt Company Ltd.
2 //
3 // SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5 #ifndef QXCBXSETTINGS_H
6 #define QXCBXSETTINGS_H
7
8 #include "qxcbscreen.h"
9
10 QT_BEGIN_NAMESPACE
11
12 class QXcbXSettingsPrivate;
13
14 class QXcbXSettings : public QXcbWindowEventListener
15 {
16 Q_DECLARE_PRIVATE(QXcbXSettings)
17 public:
18 QXcbXSettings(QXcbScreen *screen);
19 bool initialized() const;
20
21 QVariant setting(const QByteArray &property) const;
22
23 typedef void (*PropertyChangeFunc)(QXcbScreen *screen, const QByteArray &name, const QVariant &property, void *handle);
24 void registerCallbackForProperty(const QByteArray &property, PropertyChangeFunc func, void *handle);
25 void removeCallbackForHandle(const QByteArray &property, void *handle);
26 void removeCallbackForHandle(void *handle);
27
28 void handlePropertyNotifyEvent(const xcb_property_notify_event_t *event) Q_DECL_OVERRIDE;
29 private:
30 QXcbXSettingsPrivate *d_ptr;
31 };
32
33 QT_END_NAMESPACE
34
35 #endif // QXCBXSETTINGS_H