1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef BMCONSTANTS_P_H
5#define BMCONSTANTS_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 <QtBodymovin/bmglobal.h>
22#include <QtCore/private/qglobal_p.h>
23
24#define BM_LAYER_PRECOMP_IX 0x10000
25#define BM_LAYER_SOLID_IX 0x10001
26#define BM_LAYER_IMAGE_IX 0x10002
27#define BM_LAYER_NULL_IX 0x10004
28#define BM_LAYER_SHAPE_IX 0x10008
29#define BM_LAYER_TEXT_IX 0x1000f
30
31#define BM_EFFECT_FILL 0x20000
32
33QT_BEGIN_NAMESPACE
34
35Q_DECLARE_LOGGING_CATEGORY(lcLottieQtBodymovinParser);
36Q_DECLARE_LOGGING_CATEGORY(lcLottieQtBodymovinUpdate);
37Q_DECLARE_LOGGING_CATEGORY(lcLottieQtBodymovinRender);
38Q_DECLARE_LOGGING_CATEGORY(lcLottieQtBodymovinRenderThread);
39
40class BODYMOVIN_EXPORT BMLiteral : public QObject
41{
42 Q_OBJECT
43public:
44 enum ElementType {
45 Animation = 0,
46 LayerImage,
47 LayerNull,
48 LayerPrecomp,
49 LayerShape
50 };
51
52 enum PropertyType {
53 RectPosition,
54 RectSize,
55 RectRoundness
56 };
57 Q_ENUM(PropertyType)
58
59 explicit BMLiteral(QObject *parent = nullptr) : QObject(parent) {}
60};
61
62QT_END_NAMESPACE
63
64#endif // BMCONSTANTS_P_H
65

source code of qtlottie/src/bodymovin/bmconstants_p.h