1 | // Copyright (C) 2018 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef QWAYLANDXDGDECORATIONV1_H |
5 | #define QWAYLANDXDGDECORATIONV1_H |
6 | |
7 | #include <QtWaylandCompositor/QWaylandCompositorExtension> |
8 | #include <QtWaylandCompositor/QWaylandXdgToplevel> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | class QWaylandXdgDecorationManagerV1Private; |
13 | |
14 | class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandXdgDecorationManagerV1 : public QWaylandCompositorExtensionTemplate<QWaylandXdgDecorationManagerV1> |
15 | { |
16 | Q_OBJECT |
17 | Q_DECLARE_PRIVATE(QWaylandXdgDecorationManagerV1) |
18 | Q_PROPERTY(QWaylandXdgToplevel::DecorationMode preferredMode READ preferredMode WRITE setPreferredMode NOTIFY preferredModeChanged) |
19 | |
20 | public: |
21 | explicit QWaylandXdgDecorationManagerV1(); |
22 | |
23 | void initialize() override; |
24 | |
25 | QWaylandXdgToplevel::DecorationMode preferredMode() const; |
26 | void setPreferredMode(QWaylandXdgToplevel::DecorationMode preferredMode); |
27 | |
28 | static const struct wl_interface *interface(); |
29 | |
30 | Q_SIGNALS: |
31 | void preferredModeChanged(); |
32 | }; |
33 | |
34 | QT_END_NAMESPACE |
35 | |
36 | #endif // QWAYLANDXDGDECORATIONV1_H |
37 |