6#ifndef QSVGANIMATEDPROPERTY_P_H
7#define QSVGANIMATEDPROPERTY_P_H
20#include <QtSvg/private/qtsvgglobal_p.h>
21#include <QtSvg/private/qsvgeasinginterface_p.h>
22#include <QtCore/qlist.h>
23#include <QtCore/qvariant.h>
24#include <QtCore/qvarlengtharray.h>
25#include <QtCore/qstring.h>
26#include <QtCore/qpoint.h>
27#include <QtGui/qcolor.h>
33 Q_DISABLE_COPY_MOVE(QSvgAbstractAnimatedProperty)
44 virtual ~QSvgAbstractAnimatedProperty();
60 QList<qreal> m_keyFrames;
65 QString m_propertyName;
72 QSvgAnimatedPropertyColor(
const QString &name);
73 ~QSvgAnimatedPropertyColor() override;
75 void setColors(
const QList<QColor> &colors);
76 void appendColor(
const QColor &color);
77 QList<QColor> colors()
const;
79 void interpolate(uint index, qreal t)
const override;
82 QList<QColor> m_colors;
88 QSvgAnimatedPropertyFloat(
const QString &name);
89 ~QSvgAnimatedPropertyFloat() override;
91 void setValues(
const QList<qreal> &values);
92 void appendValue(
const qreal value);
93 QList<qreal> values()
const;
95 void interpolate(uint index, qreal t)
const override;
98 QList<qreal> m_values;
104 struct TransformComponent {
113 QVarLengthArray<qreal, 16> values;
117 QSvgAnimatedPropertyTransform(
const QString &name);
118 ~QSvgAnimatedPropertyTransform() override;
120 void setTransformCount(quint32 count);
121 quint32 transformCount()
const;
122 void appendComponents(
const QList<TransformComponent> &components);
123 QList<TransformComponent> components()
const;
125 void interpolate(uint index, qreal t)
const override;
128 QList<TransformComponent> m_components;
129 quint32 m_transformCount = 0;
virtual Type type() const =0
Reimplement this function to return the paint engine \l{Type}.
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
void appendKeyFrame(qreal keyFrame)
QSvgAbstractAnimatedProperty(const QString &name, Type type)
std::vector< QSvgEasingInterfacePtr > m_easings
QVariant m_interpolatedValue
QVariant interpolatedValue() const
QList< qreal > keyFrames() const
void appendEasing(QSvgEasingInterfacePtr easing)
static QSvgAbstractAnimatedProperty * createAnimatedProperty(const QString &name)
void setKeyFrames(const QList< qreal > &keyFrames)
void setPropertyName(const QString &name)
QStringView propertyName() const
const QSvgEasingInterface * easingAt(unsigned int i) const
virtual void interpolate(uint index, qreal t) const =0
QList< QSvgAbstractAnimatedProperty * > properties() const
QSvgEasingInterface * easing() const
void setIterationCount(int count)
QSvgEasingInterfacePtr m_easing
void setRunningTime(int startMs, int durationMs)
int iterationCount() const
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.