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