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
24QT_BEGIN_NAMESPACE
25
26class QQuickAnimatorJob;
27
28class QQuickAnimatorPrivate : public QQuickAbstractAnimationPrivate
29{
30 Q_DECLARE_PUBLIC(QQuickAnimator)
31public:
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
54class QQuickRotationAnimatorPrivate : public QQuickAnimatorPrivate
55{
56public:
57 QQuickRotationAnimatorPrivate()
58 : direction(QQuickRotationAnimator::Numerical)
59 {
60 }
61 QQuickRotationAnimator::RotationDirection direction;
62};
63
64#if QT_CONFIG(quick_shadereffect)
65class QQuickUniformAnimatorPrivate : public QQuickAnimatorPrivate
66{
67public:
68 QString uniform;
69};
70#endif
71
72QT_END_NAMESPACE
73
74#endif // QQUICKANIMATOR_P_P_H
75

Provided by KDAB

Privacy Policy
Learn Advanced QML with KDAB
Find out more

source code of qtdeclarative/src/quick/util/qquickanimator_p_p.h