Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QActionAnimation Class Reference

#include <qquickanimation_p_p.h>

+ Inheritance diagram for QActionAnimation:
+ Collaboration diagram for QActionAnimation:

Public Member Functions

 QActionAnimation ()
 
 QActionAnimation (QAbstractAnimationAction *action)
 
 ~QActionAnimation () override
 
int duration () const override
 
void setAnimAction (QAbstractAnimationAction *action)
 
- 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 updateCurrentTime (int) override
 
void updateState (State newState, State oldState) override
 
void debugAnimation (QDebug d) const override
 
- 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 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

- 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 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 62 of file qquickanimation_p_p.h.

Constructor & Destructor Documentation

◆ QActionAnimation() [1/2]

QActionAnimation::QActionAnimation ( )

Definition at line 841 of file qquickanimation.cpp.

◆ QActionAnimation() [2/2]

QActionAnimation::QActionAnimation ( QAbstractAnimationAction action)

Definition at line 846 of file qquickanimation.cpp.

◆ ~QActionAnimation()

QActionAnimation::~QActionAnimation ( )
override

Definition at line 851 of file qquickanimation.cpp.

Member Function Documentation

◆ debugAnimation()

void QActionAnimation::debugAnimation ( QDebug  d) const
overrideprotectedvirtual

Reimplemented from QAbstractAnimationJob.

Definition at line 883 of file qquickanimation.cpp.

References d, QAbstractAnimationAction::debugAction(), Qt::dec(), QAbstractAnimationJob::group(), and Qt::hex().

+ Here is the call graph for this function:

◆ duration()

int QActionAnimation::duration ( ) const
overridevirtual

Reimplemented from QAbstractAnimationJob.

Definition at line 856 of file qquickanimation.cpp.

◆ setAnimAction()

void QActionAnimation::setAnimAction ( QAbstractAnimationAction action)

Definition at line 861 of file qquickanimation.cpp.

References QAbstractAnimationJob::isRunning(), and QAbstractAnimationJob::stop().

Referenced by QQuickParentAnimation::transition(), and QQuickPropertyAction::transition().

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

◆ updateCurrentTime()

void QActionAnimation::updateCurrentTime ( int  )
overrideprotectedvirtual

Reimplemented from QAbstractAnimationJob.

Definition at line 868 of file qquickanimation.cpp.

◆ updateState()

void QActionAnimation::updateState ( State  newState,
State  oldState 
)
overrideprotected

Definition at line 872 of file qquickanimation.cpp.

References QAbstractAnimationAction::doAction(), newState(), Q_UNUSED, and QAbstractAnimationJob::Running.

+ Here is the call graph for this function:

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