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>.
|
#include <qquicksmoothedanimation_p_p.h>
Public Attributes | |
qreal | to |
qreal | velocity |
int | userDuration |
int | maximumEasingTime |
QQuickSmoothedAnimation::ReversingMode | reversingMode |
qreal | initialVelocity |
qreal | trackVelocity |
QQmlProperty | target |
Public Attributes inherited from QAbstractAnimationJob | |
SelfDeletable | m_selfDeletable |
Protected Member Functions | |
void | updateCurrentTime (int) override |
void | updateState (QAbstractAnimationJob::State, QAbstractAnimationJob::State) override |
void | debugAnimation (QDebug d) const override |
Protected Member Functions inherited from QAbstractAnimationJob | |
virtual void | updateLoopCount (int) |
virtual void | updateDirection (QAbstractAnimationJob::Direction direction) |
virtual void | topLevelAnimationLoopChanged () |
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 | |
Public Types inherited from QAbstractAnimationJob | |
enum | Direction { Forward , Backward } |
enum | State { Stopped , Paused , Running } |
enum | ChangeType { Completion = 0x01 , StateChange = 0x02 , CurrentLoop = 0x04 , CurrentTime = 0x08 } |
Protected Attributes inherited from QAbstractAnimationJob | |
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 >::cbegin(), QHash< Key, T >::cend(), QHash< Key, T >::constFind(), QHash< Key, T >::erase(), and it.
|
inline |
Definition at line 65 of file qquicksmoothedanimation_p_p.h.
Reimplemented from QAbstractAnimationJob.
Definition at line 276 of file qquicksmoothedanimation.cpp.
References d, Qt::dec(), Qt::hex(), to, trackVelocity, userDuration, and velocity.
|
overridevirtual |
Reimplemented from QAbstractAnimationJob.
Definition at line 105 of file qquicksmoothedanimation.cpp.
void QSmoothedAnimation::init | ( | ) |
Definition at line 223 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 79 of file qquicksmoothedanimation.cpp.
References init(), initialVelocity, QAbstractAnimationJob::isRunning(), and trackVelocity.
void QSmoothedAnimation::restart | ( | ) |
Definition at line 70 of file qquicksmoothedanimation.cpp.
References init(), initialVelocity, QAbstractAnimationJob::isRunning(), QAbstractAnimationJob::start(), and trackVelocity.
Referenced by QQuickGridViewPrivate::updateHighlight().
|
overrideprotectedvirtual |
Reimplemented from QAbstractAnimationJob.
Definition at line 204 of file qquicksmoothedanimation.cpp.
References QQmlPropertyData::BypassInterceptor, QQmlPropertyData::DontRemoveBinding, QAbstractAnimationJob::isPaused(), QAbstractAnimationJob::isRunning(), and QQmlPropertyPrivate::write().
|
overrideprotectedvirtual |
Reimplemented from QAbstractAnimationJob.
Definition at line 93 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(), and restart().
int QSmoothedAnimation::maximumEasingTime |
Definition at line 52 of file qquicksmoothedanimation_p_p.h.
Referenced by QQuickSmoothedAnimationPrivate::updateRunningAnimations().
QQuickSmoothedAnimation::ReversingMode QSmoothedAnimation::reversingMode |
Definition at line 53 of file qquicksmoothedanimation_p_p.h.
Referenced by init(), and QQuickSmoothedAnimationPrivate::updateRunningAnimations().
QQmlProperty QSmoothedAnimation::target |
Definition at line 58 of file qquicksmoothedanimation_p_p.h.
Referenced by QQuickGridViewPrivate::createHighlight().
qreal QSmoothedAnimation::to |
Definition at line 48 of file qquicksmoothedanimation_p_p.h.
Referenced by debugAnimation(), init(), and QQuickGridViewPrivate::updateHighlight().
qreal QSmoothedAnimation::trackVelocity |
Definition at line 56 of file qquicksmoothedanimation_p_p.h.
Referenced by debugAnimation(), init(), prepareForRestart(), and restart().
int QSmoothedAnimation::userDuration |
Definition at line 50 of file qquicksmoothedanimation_p_p.h.
Referenced by QQuickGridViewPrivate::createHighlight(), debugAnimation(), and QQuickSmoothedAnimationPrivate::updateRunningAnimations().
qreal QSmoothedAnimation::velocity |
Definition at line 49 of file qquicksmoothedanimation_p_p.h.
Referenced by debugAnimation(), init(), and QQuickSmoothedAnimationPrivate::updateRunningAnimations().