![]() |
Qt 6.x
The Qt SDK
|
#include <qquicksmoothedanimation_p_p.h>
Public Attributes | |
qreal | to |
qreal | velocity |
int | userDuration |
int | maximumEasingTime |
QQuickSmoothedAnimation::ReversingMode | reversingMode |
qreal | initialVelocity |
qreal | trackVelocity |
QQmlProperty | target |
![]() | |
SelfDeletable | m_selfDeletable |
Protected Member Functions | |
void | updateCurrentTime (int) override |
void | updateState (QAbstractAnimationJob::State, QAbstractAnimationJob::State) override |
void | debugAnimation (QDebug d) const override |
![]() | |
virtual void | updateCurrentTime (int) |
virtual void | updateLoopCount (int) |
virtual void | updateState (QAbstractAnimationJob::State newState, QAbstractAnimationJob::State oldState) |
virtual void | updateDirection (QAbstractAnimationJob::Direction direction) |
virtual void | topLevelAnimationLoopChanged () |
virtual void | debugAnimation (QDebug d) const |
void | fireTopLevelAnimationLoopChanged () |
void | setState (QAbstractAnimationJob::State state) |
void | finished () |
void | stateChanged (QAbstractAnimationJob::State newState, QAbstractAnimationJob::State oldState) |
void | currentLoopChanged () |
void | directionChanged (QAbstractAnimationJob::Direction) |
void | currentTimeChanged (int currentTime) |
Additional Inherited Members | |
![]() | |
enum | Direction { Forward , Backward } |
enum | State { Stopped , Paused , Running } |
enum | ChangeType { Completion = 0x01 , StateChange = 0x02 , CurrentLoop = 0x04 , CurrentTime = 0x08 } |
![]() | |
int | m_loopCount |
QAnimationGroupJob * | m_group |
QAbstractAnimationJob::Direction | m_direction |
QAbstractAnimationJob::State | m_state |
int | m_totalCurrentTime |
int | m_currentTime |
int | m_currentLoop |
int | m_uncontrolledFinishTime |
int | m_currentLoopStartTime |
std::vector< ChangeListener > | changeListeners |
QQmlAnimationTimer * | m_timer = nullptr |
bool | m_hasRegisteredTimer:1 |
bool | m_isPause:1 |
bool | m_isGroup:1 |
bool | m_disableUserControl:1 |
bool | m_hasCurrentTimeChangeListeners:1 |
bool | m_isRenderThreadJob:1 |
bool | m_isRenderThreadProxy:1 |
Definition at line 41 of file qquicksmoothedanimation_p_p.h.
QSmoothedAnimation::QSmoothedAnimation | ( | QQuickSmoothedAnimationPrivate * | priv = nullptr | ) |
Definition at line 40 of file qquicksmoothedanimation.cpp.
References DELAY_STOP_TIMER_INTERVAL, QTimer::setInterval(), and QTimer::setSingleShot().
QSmoothedAnimation::~QSmoothedAnimation | ( | ) |
Definition at line 50 of file qquicksmoothedanimation.cpp.
References QQuickSmoothedAnimationPrivate::activeAnimations, QHash< Key, T >::begin(), QHash< Key, T >::end(), QHash< Key, T >::erase(), QHash< Key, T >::find(), and it.
|
inline |
Definition at line 65 of file qquicksmoothedanimation_p_p.h.
Reimplemented from QAbstractAnimationJob.
Definition at line 278 of file qquicksmoothedanimation.cpp.
References d, Qt::dec(), Qt::hex(), to, trackVelocity, userDuration, and velocity.
|
overridevirtual |
Reimplemented from QAbstractAnimationJob.
Definition at line 107 of file qquicksmoothedanimation.cpp.
void QSmoothedAnimation::init | ( | ) |
Definition at line 225 of file qquicksmoothedanimation.cpp.
References QQmlPropertyData::BypassInterceptor, QAbstractAnimationJob::currentTime(), QQmlPropertyData::DontRemoveBinding, QQuickSmoothedAnimation::Eased, QQuickSmoothedAnimation::Immediate, initialVelocity, QTimer::isActive(), reversingMode, QTimer::stop(), QAbstractAnimationJob::stop(), QQuickSmoothedAnimation::Sync, to, trackVelocity, velocity, and QQmlPropertyPrivate::write().
Referenced by prepareForRestart(), restart(), and updateState().
void QSmoothedAnimation::prepareForRestart | ( | ) |
Definition at line 81 of file qquicksmoothedanimation.cpp.
References init(), initialVelocity, QAbstractAnimationJob::isRunning(), and trackVelocity.
Referenced by QQuickSmoothedAnimation::transition().
void QSmoothedAnimation::restart | ( | ) |
Definition at line 72 of file qquicksmoothedanimation.cpp.
References init(), initialVelocity, QAbstractAnimationJob::isRunning(), QAbstractAnimationJob::start(), and trackVelocity.
Referenced by QQuickGridViewPrivate::updateHighlight().
|
overrideprotectedvirtual |
Reimplemented from QAbstractAnimationJob.
Definition at line 206 of file qquicksmoothedanimation.cpp.
References QQmlPropertyData::BypassInterceptor, QQmlPropertyData::DontRemoveBinding, QAbstractAnimationJob::isPaused(), QAbstractAnimationJob::isRunning(), and QQmlPropertyPrivate::write().
|
overrideprotectedvirtual |
Reimplemented from QAbstractAnimationJob.
Definition at line 95 of file qquicksmoothedanimation.cpp.
References init(), newState(), and QAbstractAnimationJob::Running.
qreal QSmoothedAnimation::initialVelocity |
Definition at line 55 of file qquicksmoothedanimation_p_p.h.
Referenced by init(), prepareForRestart(), restart(), and QQuickSmoothedAnimation::transition().
int QSmoothedAnimation::maximumEasingTime |
Definition at line 52 of file qquicksmoothedanimation_p_p.h.
Referenced by QQuickSmoothedAnimation::transition(), and QQuickSmoothedAnimationPrivate::updateRunningAnimations().
QQuickSmoothedAnimation::ReversingMode QSmoothedAnimation::reversingMode |
Definition at line 53 of file qquicksmoothedanimation_p_p.h.
Referenced by init(), QQuickSmoothedAnimation::transition(), and QQuickSmoothedAnimationPrivate::updateRunningAnimations().
QQmlProperty QSmoothedAnimation::target |
Definition at line 58 of file qquicksmoothedanimation_p_p.h.
Referenced by QQuickGridViewPrivate::createHighlight(), and QQuickSmoothedAnimation::transition().
qreal QSmoothedAnimation::to |
Definition at line 48 of file qquicksmoothedanimation_p_p.h.
Referenced by debugAnimation(), init(), QQuickSmoothedAnimation::transition(), and QQuickGridViewPrivate::updateHighlight().
qreal QSmoothedAnimation::trackVelocity |
Definition at line 56 of file qquicksmoothedanimation_p_p.h.
Referenced by debugAnimation(), init(), prepareForRestart(), restart(), and QQuickSmoothedAnimation::transition().
int QSmoothedAnimation::userDuration |
Definition at line 50 of file qquicksmoothedanimation_p_p.h.
Referenced by QQuickGridViewPrivate::createHighlight(), debugAnimation(), QQuickSmoothedAnimation::transition(), and QQuickSmoothedAnimationPrivate::updateRunningAnimations().
qreal QSmoothedAnimation::velocity |
Definition at line 49 of file qquicksmoothedanimation_p_p.h.
Referenced by debugAnimation(), init(), QQuickSmoothedAnimation::transition(), and QQuickSmoothedAnimationPrivate::updateRunningAnimations().