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
qsgnodeupdater_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QSGNODEUPDATER_P_H
6#define QSGNODEUPDATER_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 <private/qtquickglobal_p.h>
20#include <QtGui/private/qdatabuffer_p.h>
21
23
24class QSGNode;
25class QSGTransformNode;
26class QSGClipNode;
27class QSGOpacityNode;
28class QSGGeometryNode;
29class QMatrix4x4;
30class QSGRenderNode;
31
32class Q_QUICK_EXPORT QSGNodeUpdater
33{
34public:
35 QSGNodeUpdater();
36 virtual ~QSGNodeUpdater();
37
38 virtual void updateStates(QSGNode *n);
39 virtual bool isNodeBlocked(QSGNode *n, QSGNode *root) const;
40
41protected:
42 virtual void enterTransformNode(QSGTransformNode *);
43 virtual void leaveTransformNode(QSGTransformNode *);
44 void enterClipNode(QSGClipNode *c);
45 void leaveClipNode(QSGClipNode *c);
46 void enterOpacityNode(QSGOpacityNode *o);
47 void leaveOpacityNode(QSGOpacityNode *o);
48 void enterGeometryNode(QSGGeometryNode *);
49 void leaveGeometryNode(QSGGeometryNode *);
50 void enterRenderNode(QSGRenderNode *);
51 void leaveRenderNode(QSGRenderNode *);
52
53 void visitNode(QSGNode *n);
54 void visitChildren(QSGNode *n);
55
56
57 QDataBuffer<const QMatrix4x4 *> m_combined_matrix_stack;
58 QDataBuffer<qreal> m_opacity_stack;
59 const QSGClipNode *m_current_clip;
60
61 int m_force_update;
62};
63
64QT_END_NAMESPACE
65
66#endif
\inmodule QtQuick
Combined button and popup list for selecting options.
QDebug operator<<(QDebug d, const QSGRootNode *n)
Definition qsgnode.cpp:1540
QDebug operator<<(QDebug d, const QSGClipNode *n)
Definition qsgnode.cpp:1477
QDebug operator<<(QDebug d, const QSGNode *n)
Definition qsgnode.cpp:1557
QDebug operator<<(QDebug d, const QSGTransformNode *n)
Definition qsgnode.cpp:1498
void qsgnode_set_description(QSGNode *node, const QString &description)
Definition qsgnode.cpp:642
QDebug operator<<(QDebug d, const QSGOpacityNode *n)
Definition qsgnode.cpp:1521
static void qt_print_node_count()
Definition qsgnode.cpp:20
static QT_BEGIN_NAMESPACE int qt_node_count
Definition qsgnode.cpp:18
QDebug operator<<(QDebug d, const QSGGeometryNode *n)
Definition qsgnode.cpp:1426
const qreal OPACITY_THRESHOLD
Definition qsgnode.cpp:1302
#define QSG_RUNTIME_DESCRIPTION
Definition qsgnode.h:17