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
QSmoothedAnimation Class Reference

#include <qquicksmoothedanimation_p_p.h>

+ Inheritance diagram for QSmoothedAnimation:
+ Collaboration diagram for QSmoothedAnimation:

Public Member Functions

 QSmoothedAnimation (QQuickSmoothedAnimationPrivate *=nullptr)
 
 ~QSmoothedAnimation ()
 
int duration () const override
 
void restart ()
 
void init ()
 
void prepareForRestart ()
 
void clearTemplate ()
 
- Public Member Functions inherited from QAbstractAnimationJob
 QAbstractAnimationJob ()
 
virtual ~QAbstractAnimationJob ()
 
QAnimationGroupJobgroup () const
 
int loopCount () const
 
void setLoopCount (int loopCount)
 
int totalDuration () const
 
QAbstractAnimationJob::Direction direction () const
 
void setDirection (QAbstractAnimationJob::Direction direction)
 
int currentTime () const
 
int currentLoopTime () const
 
int currentLoop () const
 
QAbstractAnimationJob::State state () const
 
bool isRunning ()
 
bool isStopped ()
 
bool isPaused ()
 
void setDisableUserControl ()
 
void setEnableUserControl ()
 
bool userControlDisabled () const
 
void setCurrentTime (int msecs)
 
void start ()
 
void pause ()
 
void resume ()
 
void stop ()
 
void complete ()
 
void addAnimationChangeListener (QAnimationJobChangeListener *listener, QAbstractAnimationJob::ChangeTypes)
 
void removeAnimationChangeListener (QAnimationJobChangeListener *listener, QAbstractAnimationJob::ChangeTypes)
 
bool isGroup () const
 
bool isRenderThreadJob () const
 
bool isRenderThreadProxy () const
 
- Public Member Functions inherited from QInheritedListNode
 ~QInheritedListNode ()
 
bool isInList () const
 

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
 
QAnimationGroupJobm_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< ChangeListenerchangeListeners
 
QQmlAnimationTimerm_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
 

Detailed Description

Definition at line 41 of file qquicksmoothedanimation_p_p.h.

Constructor & Destructor Documentation

◆ QSmoothedAnimation()

QSmoothedAnimation::QSmoothedAnimation ( QQuickSmoothedAnimationPrivate * priv = nullptr)

Definition at line 40 of file qquicksmoothedanimation.cpp.

References DELAY_STOP_TIMER_INTERVAL, QTimer::setInterval(), and QTimer::setSingleShot().

+ Here is the call graph for this function:

◆ ~QSmoothedAnimation()

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.

+ Here is the call graph for this function:

Member Function Documentation

◆ clearTemplate()

void QSmoothedAnimation::clearTemplate ( )
inline

Definition at line 65 of file qquicksmoothedanimation_p_p.h.

◆ debugAnimation()

void QSmoothedAnimation::debugAnimation ( QDebug d) const
overrideprotectedvirtual

Reimplemented from QAbstractAnimationJob.

Definition at line 276 of file qquicksmoothedanimation.cpp.

References d, Qt::dec(), Qt::hex(), to, trackVelocity, userDuration, and velocity.

+ Here is the call graph for this function:

◆ duration()

int QSmoothedAnimation::duration ( ) const
overridevirtual

Reimplemented from QAbstractAnimationJob.

Definition at line 105 of file qquicksmoothedanimation.cpp.

◆ init()

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

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

◆ prepareForRestart()

void QSmoothedAnimation::prepareForRestart ( )

Definition at line 79 of file qquicksmoothedanimation.cpp.

References init(), initialVelocity, QAbstractAnimationJob::isRunning(), and trackVelocity.

+ Here is the call graph for this function:

◆ restart()

void QSmoothedAnimation::restart ( )

Definition at line 70 of file qquicksmoothedanimation.cpp.

References init(), initialVelocity, QAbstractAnimationJob::isRunning(), QAbstractAnimationJob::start(), and trackVelocity.

Referenced by QQuickGridViewPrivate::updateHighlight().

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

◆ updateCurrentTime()

void QSmoothedAnimation::updateCurrentTime ( int t)
overrideprotectedvirtual

Reimplemented from QAbstractAnimationJob.

Definition at line 204 of file qquicksmoothedanimation.cpp.

References QQmlPropertyData::BypassInterceptor, QQmlPropertyData::DontRemoveBinding, QAbstractAnimationJob::isPaused(), QAbstractAnimationJob::isRunning(), and QQmlPropertyPrivate::write().

+ Here is the call graph for this function:

◆ updateState()

void QSmoothedAnimation::updateState ( QAbstractAnimationJob::State newState,
QAbstractAnimationJob::State  )
overrideprotectedvirtual

Reimplemented from QAbstractAnimationJob.

Definition at line 93 of file qquicksmoothedanimation.cpp.

References init(), newState(), and QAbstractAnimationJob::Running.

+ Here is the call graph for this function:

Member Data Documentation

◆ initialVelocity

qreal QSmoothedAnimation::initialVelocity

Definition at line 55 of file qquicksmoothedanimation_p_p.h.

Referenced by init(), prepareForRestart(), and restart().

◆ maximumEasingTime

int QSmoothedAnimation::maximumEasingTime

◆ reversingMode

QQuickSmoothedAnimation::ReversingMode QSmoothedAnimation::reversingMode

◆ target

QQmlProperty QSmoothedAnimation::target

◆ to

qreal QSmoothedAnimation::to

◆ trackVelocity

qreal QSmoothedAnimation::trackVelocity

Definition at line 56 of file qquicksmoothedanimation_p_p.h.

Referenced by debugAnimation(), init(), prepareForRestart(), and restart().

◆ userDuration

◆ velocity

qreal QSmoothedAnimation::velocity

The documentation for this class was generated from the following files: