Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qvariantanimation.cpp File Reference

(0d09b4f6b9cae84b78d59cecab6d6feb993b112a)

#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"
+ Include dependency graph for qvariantanimation.cpp:

Go to the source code of this file.

Typedefs

typedef QList< QVariantAnimation::InterpolatorQInterpolatorVector
 

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
 

Typedef Documentation

◆ QInterpolatorVector

Function Documentation

◆ _q_interpolate() [1/4]

template<>
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().

+ Here is the call graph for this function:

◆ _q_interpolate() [2/4]

template<>
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().

+ Here is the call graph for this function:

◆ _q_interpolate() [3/4]

template<>
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(), ret, and QRect::setCoords().

Referenced by _q_interpolate(), _q_interpolate(), _q_interpolate(), _q_interpolate(), and QQuickVisualTestUtils::lerpPoints().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_interpolate() [4/4]

template<>
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().

+ Here is the call graph for this function:

◆ animationValueLessThan()

static bool animationValueLessThan ( const QVariantAnimation::KeyValue & p1,
const QVariantAnimation::KeyValue & p2 )
static

Definition at line 112 of file qvariantanimation.cpp.

References p1, and p2.

Referenced by QVariantAnimationPrivate::recalculateCurrentInterval(), QVariantAnimation::setKeyValues(), QVariantAnimationPrivate::setValueAt(), and QVariantAnimationPrivate::valueAt().

+ Here is the caller graph for this function:

◆ castToInterpolator()

template<typename T >
static QVariantAnimation::Interpolator castToInterpolator ( QVariant(*)(const T &from, const T &to, qreal progress) func)
inlinestatic

Definition at line 417 of file qvariantanimation.cpp.

Referenced by QVariantAnimationPrivate::getInterpolator().

+ Here is the caller graph for this function:

◆ defaultInterpolator()

static QVariant defaultInterpolator ( const void * ,
const void * ,
qreal  )
static

Definition at line 117 of file qvariantanimation.cpp.

Referenced by QVariantAnimationPrivate::updateInterpolator().

+ Here is the caller graph for this function:

Variable Documentation

◆ registeredInterpolatorsMutex

Q_CONSTINIT QBasicMutex registeredInterpolatorsMutex
static

Definition at line 373 of file qvariantanimation.cpp.

Referenced by QVariantAnimationPrivate::getInterpolator().