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
qquick3dcontentlayer_p.h
Go to the documentation of this file.
1// Copyright (C) 2025 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
6#ifndef QQUICK3DCONTENTLAYER_P_H
7#define QQUICK3DCONTENTLAYER_P_H
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// version without notice, or even be removed.
16//
17// We mean it.
18//
19
21
22#include <QtCore/qobject.h>
23
24#include <QtQmlIntegration/qqmlintegration.h>
25
27
28class Q_QUICK3D_EXPORT QQuick3DContentLayer : public QObject
29{
30 Q_OBJECT
31 QML_NAMED_ELEMENT(ContentLayer)
32 QML_ADDED_IN_VERSION(6, 11)
33 QML_SINGLETON
34public:
35 explicit QQuick3DContentLayer(QObject *parent = nullptr);
36 ~QQuick3DContentLayer() override;
37
38 enum LayerFlag : quint32 {
39 LayerNone = 0x0,
40 Layer0 = 0x1, // Layer0 is reserved for the main layer.
41 Layer1 = 0x2,
42 Layer2 = 0x4,
43 Layer3 = 0x8,
44 Layer4 = 0x10,
45 Layer5 = 0x20,
46 Layer6 = 0x40,
47 Layer7 = 0x80,
48 Layer8 = 0x100,
49 Layer9 = 0x200,
50 Layer10 = 0x400,
51 Layer11 = 0x800,
52 Layer12 = 0x1000,
53 Layer13 = 0x2000,
54 Layer14 = 0x4000,
55 Layer15 = 0x8000,
56 Layer16 = 0x10000,
57 Layer17 = 0x20000,
58 Layer18 = 0x40000,
59 Layer19 = 0x80000,
60 Layer20 = 0x100000,
61 Layer21 = 0x200000,
62 Layer22 = 0x400000,
63 Layer23 = 0x800000,
64 // All layers from Layer1 to Layer23 are reserved for user-defined layers.
65 LayerAll = 0xFFFFFF,
66 // Layers 24 and above are reserved for internal usage.
67 Layer24 = 0x1000000,
68 Layer25 = 0x2000000,
69 Layer26 = 0x4000000,
70 Layer27 = 0x8000000,
71 Layer28 = 0x10000000,
72 Layer29 = 0x20000000,
73 Layer30 = 0x40000000,
74 Layer31 = 0x80000000,
75 ReservedLayerMask = 0xFF000000
76 };
77 Q_DECLARE_FLAGS(LayerFlags, LayerFlag)
78 Q_FLAG(LayerFlags)
79};
80
81QT_END_NAMESPACE
82
83#endif // QQUICK3DCONTENTLAYER_P_H
Combined button and popup list for selecting options.