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

#include <qsequentialanimationgroupjob_p.h>

+ Inheritance diagram for QSequentialAnimationGroupJob:
+ Collaboration diagram for QSequentialAnimationGroupJob:

Public Member Functions

 QSequentialAnimationGroupJob ()
 
 ~QSequentialAnimationGroupJob ()
 
int duration () const override
 
QAbstractAnimationJobcurrentAnimation () const
 
void clear () override
 
- Public Member Functions inherited from QAnimationGroupJob
 QAnimationGroupJob ()
 
 ~QAnimationGroupJob () override
 
void appendAnimation (QAbstractAnimationJob *animation)
 
void prependAnimation (QAbstractAnimationJob *animation)
 
void removeAnimation (QAbstractAnimationJob *animation)
 
Childrenchildren ()
 
const Childrenchildren () const
 
- 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
 

Protected Member Functions

void updateCurrentTime (int) override
 
void updateState (QAbstractAnimationJob::State newState, QAbstractAnimationJob::State oldState) override
 
void updateDirection (QAbstractAnimationJob::Direction direction) override
 
void uncontrolledAnimationFinished (QAbstractAnimationJob *animation) override
 
void debugAnimation (QDebug d) const override
 
- Protected Member Functions inherited from QAnimationGroupJob
void topLevelAnimationLoopChanged () override
 
void resetUncontrolledAnimationsFinishTime ()
 
void resetUncontrolledAnimationFinishTime (QAbstractAnimationJob *anim)
 
int uncontrolledAnimationFinishTime (const QAbstractAnimationJob *anim) const
 
void setUncontrolledAnimationFinishTime (QAbstractAnimationJob *anim, int time)
 
void debugChildren (QDebug d) const
 
void ungroupChild (QAbstractAnimationJob *animation)
 
void handleAnimationRemoved (QAbstractAnimationJob *animation)
 
- Protected Member Functions inherited from QAbstractAnimationJob
virtual void updateLoopCount (int)
 
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)
 

Private Member Functions

void animationInserted (QAbstractAnimationJob *anim) override
 
void animationRemoved (QAbstractAnimationJob *anim, QAbstractAnimationJob *, QAbstractAnimationJob *) override
 

Additional Inherited Members

- Public Types inherited from QAnimationGroupJob
using Children = QDoubleEndedList<QAbstractAnimationJob>
 
- Public Types inherited from QAbstractAnimationJob
enum  Direction { Forward , Backward }
 
enum  State { Stopped , Paused , Running }
 
enum  ChangeType { Completion = 0x01 , StateChange = 0x02 , CurrentLoop = 0x04 , CurrentTime = 0x08 }
 
- Public Attributes inherited from QAbstractAnimationJob
SelfDeletable m_selfDeletable
 
- Protected Attributes inherited from QAnimationGroupJob
Children m_children
 
- 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 25 of file qsequentialanimationgroupjob_p.h.

Constructor & Destructor Documentation

◆ QSequentialAnimationGroupJob()

QT_BEGIN_NAMESPACE QSequentialAnimationGroupJob::QSequentialAnimationGroupJob ( )

Definition at line 10 of file qsequentialanimationgroupjob.cpp.

◆ ~QSequentialAnimationGroupJob()

QSequentialAnimationGroupJob::~QSequentialAnimationGroupJob ( )

Definition at line 17 of file qsequentialanimationgroupjob.cpp.

Member Function Documentation

◆ animationInserted()

void QSequentialAnimationGroupJob::animationInserted ( QAbstractAnimationJob * anim)
overrideprivatevirtual

Reimplemented from QAnimationGroupJob.

Definition at line 347 of file qsequentialanimationgroupjob.cpp.

References QAbstractAnimationJob::currentLoop(), QAbstractAnimationJob::currentTime(), QDoubleEndedList< N >::first(), QAnimationGroupJob::m_children, QDoubleEndedList< N >::next(), and RETURN_IF_DELETED.

+ Here is the call graph for this function:

◆ animationRemoved()

void QSequentialAnimationGroupJob::animationRemoved ( QAbstractAnimationJob * anim,
QAbstractAnimationJob * prev,
QAbstractAnimationJob * next )
overrideprivatevirtual

Reimplemented from QAnimationGroupJob.

Definition at line 365 of file qsequentialanimationgroupjob.cpp.

References QAnimationGroupJob::animationRemoved(), QAbstractAnimationJob::currentTime(), duration(), QAnimationGroupJob::m_children, QAbstractAnimationJob::m_currentTime, QAbstractAnimationJob::m_loopCount, QAbstractAnimationJob::m_totalCurrentTime, next, Q_ASSERT, and RETURN_IF_DELETED.

+ Here is the call graph for this function:

◆ clear()

void QSequentialAnimationGroupJob::clear ( )
overridevirtual

Reimplemented from QAnimationGroupJob.

Definition at line 174 of file qsequentialanimationgroupjob.cpp.

References QAnimationGroupJob::clear(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ currentAnimation()

QAbstractAnimationJob * QSequentialAnimationGroupJob::currentAnimation ( ) const
inline

Definition at line 34 of file qsequentialanimationgroupjob_p.h.

◆ debugAnimation()

void QSequentialAnimationGroupJob::debugAnimation ( QDebug d) const
overrideprotectedvirtual

Reimplemented from QAbstractAnimationJob.

Definition at line 400 of file qsequentialanimationgroupjob.cpp.

References d, QAnimationGroupJob::debugChildren(), Qt::dec(), and Qt::hex().

+ Here is the call graph for this function:

◆ duration()

int QSequentialAnimationGroupJob::duration ( ) const
overridevirtual

Reimplemented from QAbstractAnimationJob.

Definition at line 159 of file qsequentialanimationgroupjob.cpp.

References QAnimationGroupJob::m_children, ret, and QAbstractAnimationJob::totalDuration().

Referenced by animationRemoved().

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

◆ uncontrolledAnimationFinished()

void QSequentialAnimationGroupJob::uncontrolledAnimationFinished ( QAbstractAnimationJob * animation)
overrideprotectedvirtual

◆ updateCurrentTime()

void QSequentialAnimationGroupJob::updateCurrentTime ( int currentTime)
overrideprotectedvirtual

Reimplemented from QAbstractAnimationJob.

Definition at line 183 of file qsequentialanimationgroupjob.cpp.

References QAbstractAnimationJob::currentTime(), QDoubleEndedList< N >::isEmpty(), QAnimationGroupJob::m_children, QAbstractAnimationJob::m_currentLoop, QAbstractAnimationJob::m_currentTime, Q_ASSERT, RETURN_IF_DELETED, QAbstractAnimationJob::setCurrentTime(), and QAbstractAnimationJob::stop().

+ Here is the call graph for this function:

◆ updateDirection()

void QSequentialAnimationGroupJob::updateDirection ( QAbstractAnimationJob::Direction direction)
overrideprotectedvirtual

Reimplemented from QAbstractAnimationJob.

Definition at line 251 of file qsequentialanimationgroupjob.cpp.

References QAbstractAnimationJob::direction(), QAbstractAnimationJob::isStopped(), and QAbstractAnimationJob::setDirection().

+ Here is the call graph for this function:

◆ updateState()

void QSequentialAnimationGroupJob::updateState ( QAbstractAnimationJob::State newState,
QAbstractAnimationJob::State oldState )
overrideprotectedvirtual

Reimplemented from QAbstractAnimationJob.

Definition at line 224 of file qsequentialanimationgroupjob.cpp.

References newState(), QAbstractAnimationJob::pause(), QAbstractAnimationJob::Paused, QAbstractAnimationJob::Running, QAbstractAnimationJob::start(), QAbstractAnimationJob::state(), QAbstractAnimationJob::stop(), QAbstractAnimationJob::Stopped, and QAbstractAnimationJob::updateState().

+ Here is the call graph for this function:

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