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 | |
4 | #ifndef QQUICKANIMATOR_P_P_H |
5 | #define QQUICKANIMATOR_P_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 "qquickanimator_p.h" |
19 | #include "qquickanimation_p_p.h" |
20 | #include <QtQuick/qquickitem.h> |
21 | |
22 | #include <QtCore/qpointer.h> |
23 | |
24 | QT_BEGIN_NAMESPACE |
25 | |
26 | class QQuickAnimatorJob; |
27 | |
28 | class QQuickAnimatorPrivate : public QQuickAbstractAnimationPrivate |
29 | { |
30 | Q_DECLARE_PUBLIC(QQuickAnimator) |
31 | public: |
32 | QQuickAnimatorPrivate() |
33 | : target(0) |
34 | , duration(250) |
35 | , from(0) |
36 | , to(0) |
37 | , fromIsDefined(false) |
38 | , toIsDefined(false) |
39 | { |
40 | } |
41 | |
42 | QPointer<QQuickItem> target; |
43 | int duration; |
44 | QEasingCurve easing; |
45 | qreal from; |
46 | qreal to; |
47 | |
48 | uint fromIsDefined : 1; |
49 | uint toIsDefined : 1; |
50 | |
51 | void apply(QQuickAnimatorJob *job, const QString &propertyName, QQuickStateActions &actions, QQmlProperties &modified, QObject *defaultTarget); |
52 | }; |
53 | |
54 | class QQuickRotationAnimatorPrivate : public QQuickAnimatorPrivate |
55 | { |
56 | public: |
57 | QQuickRotationAnimatorPrivate() |
58 | : direction(QQuickRotationAnimator::Numerical) |
59 | { |
60 | } |
61 | QQuickRotationAnimator::RotationDirection direction; |
62 | }; |
63 | |
64 | #if QT_CONFIG(quick_shadereffect) |
65 | class QQuickUniformAnimatorPrivate : public QQuickAnimatorPrivate |
66 | { |
67 | public: |
68 | QString uniform; |
69 | }; |
70 | #endif |
71 | |
72 | QT_END_NAMESPACE |
73 | |
74 | #endif // QQUICKANIMATOR_P_P_H |
75 |