1// Copyright (C) 2025 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QQUICKLAYERITEM_P_H
5#define QQUICKLAYERITEM_P_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 <QtGui/qmatrix4x4.h>
19#include <QtQuick/qquickitem.h>
20#include <QtLottieVectorImageHelpers/qtlottievectorimagehelpersexports.h>
21
22QT_BEGIN_NAMESPACE
23
24class Q_LOTTIEVECTORIMAGEHELPERS_EXPORT QQuickLayerItem : public QQuickItem
25{
26 Q_OBJECT
27 Q_PROPERTY(QMatrix4x4 transformMatrix READ transformMatrix NOTIFY transformMatrixChanged)
28 QML_NAMED_ELEMENT(LayerItem)
29 Q_DECLARE_PRIVATE(QQuickItem)
30 QML_ADDED_IN_VERSION(6, 10)
31
32public:
33 QQuickLayerItem(QQuickItem *parent = nullptr);
34 QMatrix4x4 transformMatrix();
35
36protected:
37 void itemChange(ItemChange change, const ItemChangeData &) override;
38
39private:
40 bool m_transformDirty = true;
41 QMatrix4x4 m_transform;
42
43signals:
44 void transformMatrixChanged();
45};
46
47QT_END_NAMESPACE
48
49#endif // QQUICKLAYERITEM_P_H
50
51

source code of qtlottie/src/vectorimagehelpers/qquicklayeritem_p.h