| 1 | // Copyright (C) 2018 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QLOTTIECONSTANTS_P_H |
| 5 | #define QLOTTIECONSTANTS_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 <QObject> |
| 19 | #include <QLoggingCategory> |
| 20 | |
| 21 | #include <QtLottie/qtlottieexports.h> |
| 22 | |
| 23 | #define LOTTIE_LAYER_PRECOMP_IX 0x10000 |
| 24 | #define LOTTIE_LAYER_SOLID_IX 0x10001 |
| 25 | #define LOTTIE_LAYER_IMAGE_IX 0x10002 |
| 26 | #define LOTTIE_LAYER_NULL_IX 0x10004 |
| 27 | #define LOTTIE_LAYER_SHAPE_IX 0x10008 |
| 28 | #define LOTTIE_LAYER_TEXT_IX 0x1000f |
| 29 | |
| 30 | #define LOTTIE_EFFECT_FILL 0x20000 |
| 31 | |
| 32 | QT_BEGIN_NAMESPACE |
| 33 | |
| 34 | QT_DECLARE_EXPORTED_QT_LOGGING_CATEGORY(lcLottieQtLottieParser, Q_LOTTIE_EXPORT); |
| 35 | Q_DECLARE_LOGGING_CATEGORY(lcLottieQtLottieUpdate); |
| 36 | Q_DECLARE_LOGGING_CATEGORY(lcLottieQtLottieRender); |
| 37 | Q_DECLARE_LOGGING_CATEGORY(lcLottieQtLottieRenderThread); |
| 38 | |
| 39 | class Q_LOTTIE_EXPORT QLottieLiteral : public QObject |
| 40 | { |
| 41 | Q_OBJECT |
| 42 | public: |
| 43 | enum ElementType { |
| 44 | Animation = 0, |
| 45 | LayerImage, |
| 46 | LayerNull, |
| 47 | LayerPrecomp, |
| 48 | LayerShape |
| 49 | }; |
| 50 | |
| 51 | enum PropertyType { |
| 52 | RectPosition, |
| 53 | RectSize, |
| 54 | RectRoundness |
| 55 | }; |
| 56 | Q_ENUM(PropertyType) |
| 57 | |
| 58 | explicit QLottieLiteral(QObject *parent = nullptr) : QObject(parent) {} |
| 59 | }; |
| 60 | |
| 61 | QT_END_NAMESPACE |
| 62 | |
| 63 | #endif // QLOTTIECONSTANTS_P_H |
| 64 | |