![]() |
Qt 6.x
The Qt SDK
|
#include "qvariantanimation.h"
#include "qvariantanimation_p.h"
#include <QtCore/qrect.h>
#include <QtCore/qline.h>
#include <QtCore/qmutex.h>
#include <QtCore/private/qlocking_p.h>
#include <algorithm>
#include "moc_qvariantanimation.cpp"
Go to the source code of this file.
Typedefs | |
typedef QList< QVariantAnimation::Interpolator > | QInterpolatorVector |
Functions | |
static bool | animationValueLessThan (const QVariantAnimation::KeyValue &p1, const QVariantAnimation::KeyValue &p2) |
static QVariant | defaultInterpolator (const void *, const void *, qreal) |
template<> | |
Q_INLINE_TEMPLATE QRect | _q_interpolate (const QRect &f, const QRect &t, qreal progress) |
template<> | |
Q_INLINE_TEMPLATE QRectF | _q_interpolate (const QRectF &f, const QRectF &t, qreal progress) |
template<> | |
Q_INLINE_TEMPLATE QLine | _q_interpolate (const QLine &f, const QLine &t, qreal progress) |
template<> | |
Q_INLINE_TEMPLATE QLineF | _q_interpolate (const QLineF &f, const QLineF &t, qreal progress) |
template<typename T > | |
static QVariantAnimation::Interpolator | castToInterpolator (QVariant(*func)(const T &from, const T &to, qreal progress)) |
Variables | |
static Q_CONSTINIT QBasicMutex | registeredInterpolatorsMutex |
Definition at line 369 of file qvariantanimation.cpp.
Q_INLINE_TEMPLATE QLine _q_interpolate | ( | const QLine & | f, |
const QLine & | t, | ||
qreal | progress | ||
) |
Definition at line 142 of file qvariantanimation.cpp.
References _q_interpolate().
Q_INLINE_TEMPLATE QLineF _q_interpolate | ( | const QLineF & | f, |
const QLineF & | t, | ||
qreal | progress | ||
) |
Definition at line 147 of file qvariantanimation.cpp.
References _q_interpolate().
Q_INLINE_TEMPLATE QRect _q_interpolate | ( | const QRect & | f, |
const QRect & | t, | ||
qreal | progress | ||
) |
Definition at line 122 of file qvariantanimation.cpp.
References _q_interpolate(), and ret.
Referenced by _q_interpolate(), _q_interpolate(), _q_interpolate(), _q_interpolate(), and QQuickVisualTestUtils::lerpPoints().
Q_INLINE_TEMPLATE QRectF _q_interpolate | ( | const QRectF & | f, |
const QRectF & | t, | ||
qreal | progress | ||
) |
Definition at line 132 of file qvariantanimation.cpp.
References _q_interpolate().
|
static |
Definition at line 112 of file qvariantanimation.cpp.
Referenced by QVariantAnimationPrivate::recalculateCurrentInterval(), QVariantAnimation::setKeyValues(), QVariantAnimationPrivate::setValueAt(), and QVariantAnimationPrivate::valueAt().
|
inlinestatic |
Definition at line 415 of file qvariantanimation.cpp.
Referenced by QVariantAnimationPrivate::getInterpolator().
Definition at line 117 of file qvariantanimation.cpp.
Referenced by QVariantAnimationPrivate::updateInterpolator().
|
static |
Definition at line 371 of file qvariantanimation.cpp.
Referenced by QVariantAnimationPrivate::getInterpolator().