1// Copyright (C) 2017 The Qt Company Ltd.
2// Copyright (C) 2017 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
4
5#ifndef QWAYLANDQTWINDOWMANAGER_H
6#define QWAYLANDQTWINDOWMANAGER_H
7
8#include <QtWaylandCompositor/QWaylandCompositorExtension>
9#include <QtWaylandCompositor/QWaylandClient>
10
11#include <QtCore/QUrl>
12
13QT_BEGIN_NAMESPACE
14
15class QWaylandQtWindowManagerPrivate;
16
17class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandQtWindowManager : public QWaylandCompositorExtensionTemplate<QWaylandQtWindowManager>
18{
19 Q_OBJECT
20 Q_DECLARE_PRIVATE(QWaylandQtWindowManager)
21 Q_PROPERTY(bool showIsFullScreen READ showIsFullScreen WRITE setShowIsFullScreen NOTIFY showIsFullScreenChanged)
22public:
23 QWaylandQtWindowManager();
24 explicit QWaylandQtWindowManager(QWaylandCompositor *compositor);
25
26 bool showIsFullScreen() const;
27 void setShowIsFullScreen(bool value);
28
29 void sendQuitMessage(QWaylandClient *client);
30
31 void initialize() override;
32
33 static const struct wl_interface *interface();
34 static QByteArray interfaceName();
35
36Q_SIGNALS:
37 void showIsFullScreenChanged();
38 void openUrl(QWaylandClient *client, const QUrl &url);
39};
40
41QT_END_NAMESPACE
42
43#endif // QWAYLANDQTWINDOWMANAGER_H
44

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