Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qsvgabstractanimation_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 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// Qt-Security score:significant reason:default
4
5
6#ifndef QSVGABSTRACTANIMATION_P_H
7#define QSVGABSTRACTANIMATION_P_H
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// version without notice, or even be removed.
16//
17// We mean it.
18//
19
20#include <QtSvg/private/qtsvgglobal_p.h>
23#include <QtCore/qlist.h>
24
26
27class Q_SVG_EXPORT QSvgAbstractAnimation
28{
29public:
30 enum AnimationType
31 {
32 CSS,
33 SMIL,
34 };
35
36 QSvgAbstractAnimation();
37 virtual ~QSvgAbstractAnimation();
38
39 virtual AnimationType animationType() const = 0;
40 void evaluateAnimation(qreal elapsedTime);
41
42 void setRunningTime(int startMs, int durationMs);
43 int start() const;
44 int duration() const;
45
46 void setIterationCount(int count);
47 int iterationCount() const;
48
49 void setEasing(QSvgEasingInterfacePtr easing);
50 QSvgEasingInterface *easing() const;
51
52 virtual void appendProperty(QSvgAbstractAnimatedProperty *property);
53 QList<QSvgAbstractAnimatedProperty *> properties() const;
54
55 bool finished() const;
56 virtual bool isActive() const;
57
58protected:
59 int m_start;
60 int m_duration;
61 bool m_finished;
62 int m_iterationCount;
63 QSvgEasingInterfacePtr m_easing;
64 QList<QSvgAbstractAnimatedProperty *> m_properties;
65};
66
67QT_END_NAMESPACE
68
69#endif // QSVGABSTRACTANIMATION_P_H
Combined button and popup list for selecting options.