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