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_AUTOTEST_EXPORT QQuick3DItem2D : public QQuick3DNode, public QQuickItemChangeListener
34{
35 Q_OBJECT
36public:
37 explicit QQuick3DItem2D(QQuickItem* item, QQuick3DNode *parent = nullptr);
38 ~QQuick3DItem2D() override;
39
40 void addChildItem(QQuickItem *item);
41 void removeChildItem(QQuickItem *item);
42 QQuickItem *contentItem() const;
43 void itemDestroyed(QQuickItem *item) override;
44
45private Q_SLOTS:
46 void updatePicking();
47 void derefWindow(QObject *win);
48
49Q_SIGNALS:
50 void allChildrenRemoved();
51
52protected:
53 void preSync() override;
54
55private:
56 QSSGRenderGraphObject *updateSpatialNode(QSSGRenderGraphObject *node) override;
57 void markAllDirty() override;
58
59 QVector<QQuickItem *> m_sourceItems;
60 QQuickWindow *m_window = nullptr;
61 QQuickItem *m_contentItem = nullptr;
62 bool m_pickingDirty = true;
63};
64
65QT_END_NAMESPACE
66
67#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)