1// Copyright (C) 2017 Jolla Ltd, author: <giulio.camuffo@jollamobile.com>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QWAYLANDQUICKCOMPOSITOR_H
5#define QWAYLANDQUICKCOMPOSITOR_H
6
7#include <QtWaylandCompositor/qwaylandcompositor.h>
8#include <QtQml/QQmlParserStatus>
9
10QT_REQUIRE_CONFIG(wayland_compositor_quick);
11
12QT_BEGIN_NAMESPACE
13
14class QQuickWindow;
15class QWaylandQuickCompositorPrivate;
16class QWaylandView;
17
18class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandQuickCompositor : public QWaylandCompositor, public QQmlParserStatus
19{
20 Q_INTERFACES(QQmlParserStatus)
21 Q_OBJECT
22public:
23 QWaylandQuickCompositor(QObject *parent = nullptr);
24 void create() override;
25
26 void grabSurface(QWaylandSurfaceGrabber *grabber, const QWaylandBufferRef &buffer) override;
27
28protected:
29 void classBegin() override;
30 void componentComplete() override;
31};
32
33QT_END_NAMESPACE
34
35#endif
36

source code of qtwayland/src/compositor/compositor_api/qwaylandquickcompositor.h