1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QWAYLANDQUICKHARDWARELAYER_P_H
5#define QWAYLANDQUICKHARDWARELAYER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtWaylandCompositor/QWaylandQuickItem>
19#include <QtCore/private/qglobal_p.h>
20
21QT_BEGIN_NAMESPACE
22
23class QWaylandQuickHardwareLayerPrivate;
24
25class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandQuickHardwareLayer : public QObject, public QQmlParserStatus
26{
27 Q_OBJECT
28 Q_INTERFACES(QQmlParserStatus)
29 Q_DECLARE_PRIVATE(QWaylandQuickHardwareLayer)
30 Q_PROPERTY(int stackingLevel READ stackingLevel WRITE setStackingLevel NOTIFY stackingLevelChanged)
31 QML_NAMED_ELEMENT(WaylandHardwareLayer)
32 QML_ADDED_IN_VERSION(1, 2)
33public:
34 explicit QWaylandQuickHardwareLayer(QObject *parent = nullptr);
35 ~QWaylandQuickHardwareLayer() override;
36
37 int stackingLevel() const;
38 void setStackingLevel(int level);
39
40 QWaylandQuickItem *waylandItem() const;
41
42 void classBegin() override;
43 void componentComplete() override;
44
45 void setSceneGraphPainting(bool);
46 void initialize();
47
48Q_SIGNALS:
49 void stackingLevelChanged();
50};
51
52QT_END_NAMESPACE
53
54#endif // QWAYLANDQUICKHARDWARELAYER_P_H
55

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