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

#include <qanimationgroupjob_p.h>

+ Inheritance diagram for QAnimationGroupJob:
+ Collaboration diagram for QAnimationGroupJob:

Public Types

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 Member Functions

 QAnimationGroupJob ()
 
 ~QAnimationGroupJob () override
 
void appendAnimation (QAbstractAnimationJob *animation)
 
void prependAnimation (QAbstractAnimationJob *animation)
 
void removeAnimation (QAbstractAnimationJob *animation)
 
Childrenchildren ()
 
const Childrenchildren () const
 
virtual void clear ()
 
virtual void uncontrolledAnimationFinished (QAbstractAnimationJob *animation)
 
- Public Member Functions inherited from QAbstractAnimationJob
 QAbstractAnimationJob ()
 
virtual ~QAbstractAnimationJob ()
 
QAnimationGroupJobgroup () const
 
int loopCount () const
 
void setLoopCount (int loopCount)
 
int totalDuration () const
 
virtual int duration () 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 topLevelAnimationLoopChanged () override
 
virtual void animationInserted (QAbstractAnimationJob *)
 
virtual void animationRemoved (QAbstractAnimationJob *, QAbstractAnimationJob *, QAbstractAnimationJob *)
 
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 updateCurrentTime (int)
 
virtual void updateLoopCount (int)
 
virtual void updateState (QAbstractAnimationJob::State newState, QAbstractAnimationJob::State oldState)
 
virtual void updateDirection (QAbstractAnimationJob::Direction direction)
 
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)
 

Protected Attributes

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
 

Additional Inherited Members

- Public Attributes inherited from QAbstractAnimationJob
SelfDeletable m_selfDeletable
 

Detailed Description

Definition at line 26 of file qanimationgroupjob_p.h.

Member Typedef Documentation

◆ Children

Constructor & Destructor Documentation

◆ QAnimationGroupJob()

QT_BEGIN_NAMESPACE QAnimationGroupJob::QAnimationGroupJob ( )

Definition at line 8 of file qanimationgroupjob.cpp.

References QAbstractAnimationJob::m_isGroup.

◆ ~QAnimationGroupJob()

QAnimationGroupJob::~QAnimationGroupJob ( )
override

Definition at line 30 of file qanimationgroupjob.cpp.

References animation, QDoubleEndedList< N >::first(), handleAnimationRemoved(), m_children, and ungroupChild().

+ Here is the call graph for this function:

Member Function Documentation

◆ animationInserted()

virtual void QAnimationGroupJob::animationInserted ( QAbstractAnimationJob * )
inlineprotectedvirtual

Reimplemented in QSequentialAnimationGroupJob.

Definition at line 49 of file qanimationgroupjob_p.h.

Referenced by appendAnimation(), and prependAnimation().

+ Here is the caller graph for this function:

◆ animationRemoved()

void QAnimationGroupJob::animationRemoved ( QAbstractAnimationJob * anim,
QAbstractAnimationJob * ,
QAbstractAnimationJob *  )
protectedvirtual

Reimplemented in QSequentialAnimationGroupJob.

Definition at line 111 of file qanimationgroupjob.cpp.

References handleAnimationRemoved().

Referenced by QSequentialAnimationGroupJob::animationRemoved(), and removeAnimation().

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

◆ appendAnimation()

void QAnimationGroupJob::appendAnimation ( QAbstractAnimationJob * animation)

Definition at line 45 of file qanimationgroupjob.cpp.

References animation, animationInserted(), QDoubleEndedList< N >::append(), m_children, and Q_ASSERT.

+ Here is the call graph for this function:

◆ children() [1/2]

Children * QAnimationGroupJob::children ( )
inline

Definition at line 39 of file qanimationgroupjob_p.h.

◆ children() [2/2]

const Children * QAnimationGroupJob::children ( ) const
inline

Definition at line 40 of file qanimationgroupjob_p.h.

◆ clear()

void QAnimationGroupJob::clear ( )
virtual

Reimplemented in QSequentialAnimationGroupJob.

Definition at line 77 of file qanimationgroupjob.cpp.

References child, QDoubleEndedList< N >::first(), QDoubleEndedList< N >::isEmpty(), m_children, Q_ASSERT, and removeAnimation().

Referenced by QSequentialAnimationGroupJob::clear().

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

◆ debugChildren()

void QAnimationGroupJob::debugChildren ( QDebug d) const
protected

Definition at line 116 of file qanimationgroupjob.cpp.

References child, QByteArray::constData(), d, and m_children.

Referenced by QContinuingAnimationGroupJob::debugAnimation(), QParallelAnimationGroupJob::debugAnimation(), and QSequentialAnimationGroupJob::debugAnimation().

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

◆ handleAnimationRemoved()

void QAnimationGroupJob::handleAnimationRemoved ( QAbstractAnimationJob * animation)
protected

Definition at line 21 of file qanimationgroupjob.cpp.

References animation, QDoubleEndedList< N >::isEmpty(), m_children, QAbstractAnimationJob::m_currentTime, resetUncontrolledAnimationFinishTime(), and QAbstractAnimationJob::stop().

Referenced by ~QAnimationGroupJob(), and animationRemoved().

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

◆ prependAnimation()

void QAnimationGroupJob::prependAnimation ( QAbstractAnimationJob * animation)

Definition at line 57 of file qanimationgroupjob.cpp.

References animation, animationInserted(), m_children, QDoubleEndedList< N >::prepend(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ removeAnimation()

void QAnimationGroupJob::removeAnimation ( QAbstractAnimationJob * animation)

Definition at line 69 of file qanimationgroupjob.cpp.

References animation, animationRemoved(), m_children, next, QDoubleEndedList< N >::next(), QDoubleEndedList< N >::prev(), and ungroupChild().

Referenced by QAbstractAnimationJob::~QAbstractAnimationJob(), and clear().

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

◆ resetUncontrolledAnimationFinishTime()

void QAnimationGroupJob::resetUncontrolledAnimationFinishTime ( QAbstractAnimationJob * anim)
protected

Definition at line 96 of file qanimationgroupjob.cpp.

References setUncontrolledAnimationFinishTime().

Referenced by handleAnimationRemoved(), resetUncontrolledAnimationsFinishTime(), QContinuingAnimationGroupJob::updateState(), and QParallelAnimationGroupJob::updateState().

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

◆ resetUncontrolledAnimationsFinishTime()

void QAnimationGroupJob::resetUncontrolledAnimationsFinishTime ( )
protected

Definition at line 87 of file qanimationgroupjob.cpp.

References animation, QVariantAnimation::duration, QAbstractAnimation::loopCount, m_children, and resetUncontrolledAnimationFinishTime().

+ Here is the call graph for this function:

◆ setUncontrolledAnimationFinishTime()

void QAnimationGroupJob::setUncontrolledAnimationFinishTime ( QAbstractAnimationJob * anim,
int time )
protected

Definition at line 101 of file qanimationgroupjob.cpp.

References QAbstractAnimationJob::m_uncontrolledFinishTime, and time.

Referenced by resetUncontrolledAnimationFinishTime(), QContinuingAnimationGroupJob::uncontrolledAnimationFinished(), QParallelAnimationGroupJob::uncontrolledAnimationFinished(), and QSequentialAnimationGroupJob::uncontrolledAnimationFinished().

+ Here is the caller graph for this function:

◆ topLevelAnimationLoopChanged()

void QAnimationGroupJob::topLevelAnimationLoopChanged ( )
overrideprotectedvirtual

Reimplemented from QAbstractAnimationJob.

Definition at line 39 of file qanimationgroupjob.cpp.

References animation, and m_children.

◆ uncontrolledAnimationFinished()

void QAnimationGroupJob::uncontrolledAnimationFinished ( QAbstractAnimationJob * animation)
virtual

Reimplemented in QContinuingAnimationGroupJob, QParallelAnimationGroupJob, and QSequentialAnimationGroupJob.

Definition at line 106 of file qanimationgroupjob.cpp.

References animation, and Q_UNUSED.

Referenced by QAbstractAnimationJob::finished().

+ Here is the caller graph for this function:

◆ uncontrolledAnimationFinishTime()

int QAnimationGroupJob::uncontrolledAnimationFinishTime ( const QAbstractAnimationJob * anim) const
inlineprotected

Definition at line 55 of file qanimationgroupjob_p.h.

References QAbstractAnimationJob::m_uncontrolledFinishTime.

Referenced by QContinuingAnimationGroupJob::uncontrolledAnimationFinished(), and QParallelAnimationGroupJob::uncontrolledAnimationFinished().

+ Here is the caller graph for this function:

◆ ungroupChild()

void QAnimationGroupJob::ungroupChild ( QAbstractAnimationJob * animation)
protected

Definition at line 13 of file qanimationgroupjob.cpp.

References animation, m_children, Q_ASSERT, and QDoubleEndedList< N >::remove().

Referenced by ~QAnimationGroupJob(), and removeAnimation().

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

Member Data Documentation

◆ m_children


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