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{
29 Q_DISABLE_COPY_MOVE(QSvgAbstractAnimation)
30public:
31 enum AnimationType
32 {
33 CSS,
34 SMIL,
35 };
36
38 virtual ~QSvgAbstractAnimation();
39
40 virtual AnimationType animationType() const = 0;
41 void evaluateAnimation(qreal elapsedTime);
42
43 void setRunningTime(int startMs, int durationMs);
44 int start() const;
45 int duration() const;
46
47 void setIterationCount(int count);
48 int iterationCount() const;
49
50 void setEasing(QSvgEasingInterfacePtr easing);
52
53 virtual void appendProperty(QSvgAbstractAnimatedProperty *property);
55
56 bool finished() const;
57 virtual bool isActive() const;
58
59protected:
60 int m_start;
66};
67
68QT_END_NAMESPACE
69
70#endif // QSVGABSTRACTANIMATION_P_H
bool isActive() const
Returns true if begin() has been called and end() has not yet been called; otherwise returns false.
QSet< QPrintEngine::PrintEnginePropertyKey > m_properties
Definition qprinter_p.h:102
QList< QSvgAbstractAnimatedProperty * > properties() const
QSvgEasingInterface * easing() const
QSvgEasingInterfacePtr m_easing
void setRunningTime(int startMs, int durationMs)
void setEasing(QSvgEasingInterfacePtr easing)
virtual AnimationType animationType() const =0
virtual void appendProperty(QSvgAbstractAnimatedProperty *property)
void evaluateAnimation(qreal elapsedTime)
Combined button and popup list for selecting options.