summaryrefslogtreecommitdiffstats
path: root/examples/wayland/custom-shell/client-plugin/exampleshellintegration.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/wayland/custom-shell/client-plugin/exampleshellintegration.h')
-rw-r--r--examples/wayland/custom-shell/client-plugin/exampleshellintegration.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/wayland/custom-shell/client-plugin/exampleshellintegration.h b/examples/wayland/custom-shell/client-plugin/exampleshellintegration.h
new file mode 100644
index 000000000..f7f9de909
--- /dev/null
+++ b/examples/wayland/custom-shell/client-plugin/exampleshellintegration.h
@@ -0,0 +1,23 @@
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+#ifndef EXAMPLESHELLINTEGRATION_H
+#define EXAMPLESHELLINTEGRATION_H
+#include <QtWaylandClient/private/qwaylandclientshellapi_p.h>
+#include "qwayland-example-shell.h"
+
+using namespace QtWaylandClient;
+
+//! [shell-integration]
+class Q_WAYLANDCLIENT_EXPORT ExampleShellIntegration
+ : public QWaylandShellIntegrationTemplate<ExampleShellIntegration>
+ , public QtWayland::qt_example_shell
+{
+public:
+ ExampleShellIntegration();
+
+ QWaylandShellSurface *createShellSurface(QWaylandWindow *window) override;
+};
+//! [shell-integration]
+
+#endif // EXAMPLESHELLINTEGRATION_H