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