Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
>
21
#
include
"qsvganimatedproperty_p.h"
22
#
include
"qsvgeasinginterface_p.h"
23
#
include
<
QtCore
/
qlist
.
h
>
24
25
QT_BEGIN_NAMESPACE
26
27
class
Q_SVG_EXPORT
QSvgAbstractAnimation
28
{
29
Q_DISABLE_COPY_MOVE(QSvgAbstractAnimation)
30
public
:
31
enum
AnimationType
32
{
33
CSS,
34
SMIL,
35
};
36
37
QSvgAbstractAnimation
() =
default
;
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);
51
QSvgEasingInterface
*
easing
()
const
;
52
53
virtual
void
appendProperty
(QSvgAbstractAnimatedProperty *property);
54
QList
<
QSvgAbstractAnimatedProperty
*>
properties
()
const
;
55
56
bool
finished
()
const
;
57
virtual
bool
isActive
()
const
;
58
59
protected
:
60
int
m_start{0};
61
int
m_duration
{0};
62
bool
m_finished
{
false
};
63
int
m_iterationCount
{0};
64
QSvgEasingInterfacePtr
m_easing
;
65
QList
<
QSvgAbstractAnimatedProperty
*>
m_properties
;
66
};
67
68
QT_END_NAMESPACE
69
70
#
endif
// QSVGABSTRACTANIMATION_P_H
QPainter::isActive
bool isActive() const
Returns true if begin() has been called and end() has not yet been called; otherwise returns false.
Definition
qpainter.cpp:1529
QPrinterPrivate::m_properties
QSet< QPrintEngine::PrintEnginePropertyKey > m_properties
Definition
qprinter_p.h:100
QSvgAbstractAnimation
Definition
qsvgabstractanimation_p.h:28
QSvgAbstractAnimation::properties
QList< QSvgAbstractAnimatedProperty * > properties() const
Definition
qsvgabstractanimation.cpp:21
QSvgAbstractAnimation::duration
int duration() const
Definition
qsvgabstractanimation.cpp:83
QSvgAbstractAnimation::easing
QSvgEasingInterface * easing() const
Definition
qsvgabstractanimation.cpp:103
QSvgAbstractAnimation::setIterationCount
void setIterationCount(int count)
Definition
qsvgabstractanimation.cpp:88
QSvgAbstractAnimation::m_finished
bool m_finished
Definition
qsvgabstractanimation_p.h:62
QSvgAbstractAnimation::finished
bool finished() const
Definition
qsvgabstractanimation.cpp:26
QSvgAbstractAnimation::m_iterationCount
int m_iterationCount
Definition
qsvgabstractanimation_p.h:63
QSvgAbstractAnimation::QSvgAbstractAnimation
QSvgAbstractAnimation()=default
QSvgAbstractAnimation::m_duration
int m_duration
Definition
qsvgabstractanimation_p.h:61
QSvgAbstractAnimation::m_easing
QSvgEasingInterfacePtr m_easing
Definition
qsvgabstractanimation_p.h:64
QSvgAbstractAnimation::setRunningTime
void setRunningTime(int startMs, int durationMs)
Definition
qsvgabstractanimation.cpp:72
QSvgAbstractAnimation::iterationCount
int iterationCount() const
Definition
qsvgabstractanimation.cpp:93
QSvgAbstractAnimation::setEasing
void setEasing(QSvgEasingInterfacePtr easing)
Definition
qsvgabstractanimation.cpp:98
QSvgAbstractAnimation::start
int start() const
Definition
qsvgabstractanimation.cpp:78
QSvgAbstractAnimation::animationType
virtual AnimationType animationType() const =0
QSvgAbstractAnimation::appendProperty
virtual void appendProperty(QSvgAbstractAnimatedProperty *property)
Definition
qsvgabstractanimation.cpp:16
QSvgAbstractAnimation::evaluateAnimation
void evaluateAnimation(qreal elapsedTime)
Definition
qsvgabstractanimation.cpp:36
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtsvg
src
svg
animation
qsvgabstractanimation_p.h
Generated on
for Qt by
1.18.0