| 1 | // Copyright (C) 2018 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QWAYLANDFULLSCREENSHELLV1SURFACE_H |
| 5 | #define QWAYLANDFULLSCREENSHELLV1SURFACE_H |
| 6 | |
| 7 | #include <QtWaylandClient/qtwaylandclientglobal.h> |
| 8 | #include <QtWaylandClient/private/qwaylandshellsurface_p.h> |
| 9 | #include <QtWaylandClient/private/qwaylandwindow_p.h> |
| 10 | |
| 11 | #include "qwayland-fullscreen-shell-unstable-v1.h" |
| 12 | |
| 13 | QT_BEGIN_NAMESPACE |
| 14 | |
| 15 | namespace QtWaylandClient { |
| 16 | |
| 17 | class Q_WAYLANDCLIENT_EXPORT QWaylandFullScreenShellV1Surface : public QWaylandShellSurface |
| 18 | { |
| 19 | public: |
| 20 | QWaylandFullScreenShellV1Surface(QtWayland::zwp_fullscreen_shell_v1 *shell, QWaylandWindow *window); |
| 21 | std::any surfaceRole() const override { return m_shell->object(); } |
| 22 | |
| 23 | private: |
| 24 | QtWayland::zwp_fullscreen_shell_v1 *m_shell = nullptr; |
| 25 | QWaylandWindow *m_window = nullptr; |
| 26 | }; |
| 27 | |
| 28 | } // namespace QtWaylandClient |
| 29 | |
| 30 | QT_END_NAMESPACE |
| 31 | |
| 32 | #endif // QWAYLANDFULLSCREENSHELLV1SURFACE_H |
| 33 | |