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
10QT_BEGIN_NAMESPACE
11
12class QWaylandXdgDecorationManagerV1Private;
13
14class 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
20public:
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
30Q_SIGNALS:
31 void preferredModeChanged();
32};
33
34QT_END_NAMESPACE
35
36#endif // QWAYLANDXDGDECORATIONV1_H
37

source code of qtwayland/src/compositor/extensions/qwaylandxdgdecorationv1.h