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
qvariantanimation.cpp File Reference

(11f2d3c86f41f0f05de0a74cf16166c4487a72a2)

#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))
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)

Variables

static Q_CONSTINIT QBasicMutex registeredInterpolatorsMutex

Typedef Documentation

◆ QInterpolatorVector

Function Documentation

◆ _q_interpolate() [1/8]

template<>
Q_INLINE_TEMPLATE QLine _q_interpolate ( const QLine & f,
const QLine & t,
qreal progress )

Definition at line 143 of file qvariantanimation.cpp.

◆ _q_interpolate() [2/8]

template<>
Q_INLINE_TEMPLATE QLine _q_interpolate ( const QLine & f,
const QLine & t,
qreal progress )

Definition at line 143 of file qvariantanimation.cpp.

◆ _q_interpolate() [3/8]

template<>
Q_INLINE_TEMPLATE QLineF _q_interpolate ( const QLineF & f,
const QLineF & t,
qreal progress )

Definition at line 148 of file qvariantanimation.cpp.

◆ _q_interpolate() [4/8]

template<>
Q_INLINE_TEMPLATE QLineF _q_interpolate ( const QLineF & f,
const QLineF & t,
qreal progress )

Definition at line 148 of file qvariantanimation.cpp.

◆ _q_interpolate() [5/8]

template<>
Q_INLINE_TEMPLATE QRect _q_interpolate ( const QRect & f,
const QRect & t,
qreal progress )

Definition at line 123 of file qvariantanimation.cpp.

◆ _q_interpolate() [6/8]

template<>
Q_INLINE_TEMPLATE QRect _q_interpolate ( const QRect & f,
const QRect & t,
qreal progress )

Definition at line 123 of file qvariantanimation.cpp.

◆ _q_interpolate() [7/8]

template<>
Q_INLINE_TEMPLATE QRectF _q_interpolate ( const QRectF & f,
const QRectF & t,
qreal progress )

Definition at line 133 of file qvariantanimation.cpp.

◆ _q_interpolate() [8/8]

template<>
Q_INLINE_TEMPLATE QRectF _q_interpolate ( const QRectF & f,
const QRectF & t,
qreal progress )

Definition at line 133 of file qvariantanimation.cpp.

◆ animationValueLessThan()

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

Definition at line 113 of file qvariantanimation.cpp.

◆ castToInterpolator()

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

Definition at line 421 of file qvariantanimation.cpp.

◆ defaultInterpolator()

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

Definition at line 118 of file qvariantanimation.cpp.

Variable Documentation

◆ registeredInterpolatorsMutex

Q_CONSTINIT QBasicMutex registeredInterpolatorsMutex
static

Definition at line 377 of file qvariantanimation.cpp.