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
qquick3ditem2d_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
6#ifndef QSSGITEM2D_H
7#define QSSGITEM2D_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
20#include <QtQuick3D/private/qquick3dnode_p.h>
21#include <QtQuick3D/private/qquick3dscenemanager_p.h>
22#include <QtQuick/private/qquickitemchangelistener_p.h>
23#include <QtQuick/QSGNode>
24#include <QtCore/QPointer>
25#include <QtCore/QVector>
26
28
29class QSGLayer;
30class QSGRootNode;
31class QQuickRootItem;
32
33class Q_QUICK3D_EXPORT QQuick3DItem2D : public QQuick3DNode,
34 public QSafeQuickItemChangeListener<QQuick3DItem2D>
35{
36 Q_OBJECT
37public:
38 explicit QQuick3DItem2D(QQuickItem* item, QQuick3DNode *parent = nullptr);
39 ~QQuick3DItem2D() override;
40
41 void addChildItem(QQuickItem *item);
42 void removeChildItem(QQuickItem *item);
43 QQuickItem *contentItem() const;
44 void itemDestroyed(QQuickItem *item) override;
45
46private Q_SLOTS:
47 void updatePicking();
48 void derefWindow(QObject *win);
49
50Q_SIGNALS:
51 void allChildrenRemoved();
52
53protected:
54 void preSync() override;
55
56private:
57 QSSGRenderGraphObject *updateSpatialNode(QSSGRenderGraphObject *node) override;
58 void markAllDirty() override;
59
60 QVector<QQuickItem *> m_sourceItems;
61 QQuickWindow *m_window = nullptr;
62 QQuickItem *m_contentItem = nullptr;
63 bool m_pickingDirty = true;
64};
65
66QT_END_NAMESPACE
67
68#endif // QSSGITEM2D_H
Combined button and popup list for selecting options.
Definition qjsvalue.h:24
DEFINE_OBJECT_VTABLE(QSSGItemWrapper)
#define DIRTY_TO_STRING(value)
static void markObjects(QV4::Heap::Base *that, QV4::MarkStack *markStack)