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
QQuickAnimatorJob Class Referenceabstract

#include <qquickanimatorjob_p.h>

+ Inheritance diagram for QQuickAnimatorJob:
+ Collaboration diagram for QQuickAnimatorJob:

Public Member Functions

virtual void setTarget (QQuickItem *target)
 
QQuickItemtarget () const
 
void setFrom (qreal from)
 
qreal from () const
 
void setTo (qreal to)
 
qreal to () const
 
void setDuration (int duration)
 
int duration () const override
 
QEasingCurve easingCurve () const
 
void setEasingCurve (const QEasingCurve &curve)
 
virtual void initialize (QQuickAnimatorController *controller)
 
virtual void invalidate ()=0
 
virtual void writeBack ()=0
 
virtual void preSync ()
 
virtual void postSync ()
 
virtual void commit ()
 
bool isTransform () const
 
bool isUniform () const
 
qreal value () const
 
QQuickAnimatorControllercontroller () 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

 QQuickAnimatorJob ()
 
void debugAnimation (QDebug d) const override
 
qreal progress (int time) const
 
void boundValue ()
 
- 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 ()
 
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

QPointer< QQuickItemm_target
 
QQuickAnimatorControllerm_controller
 
qreal m_from
 
qreal m_to
 
qreal m_value
 
QEasingCurve m_easing
 
int m_duration
 
uint m_isTransform: 1
 
uint m_isUniform: 1
 
- 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 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
 

Detailed Description

Definition at line 81 of file qquickanimatorjob_p.h.

Constructor & Destructor Documentation

◆ QQuickAnimatorJob()

QQuickAnimatorJob::QQuickAnimatorJob ( )
protected

Definition at line 224 of file qquickanimatorjob.cpp.

References QAbstractAnimationJob::m_isRenderThreadJob.

Member Function Documentation

◆ boundValue()

void QQuickAnimatorJob::boundValue ( )
protected

Definition at line 249 of file qquickanimatorjob.cpp.

References m_from, m_to, m_value, and qBound().

+ Here is the call graph for this function:

◆ commit()

virtual void QQuickAnimatorJob::commit ( )
inlinevirtual

Reimplemented in QQuickTransformAnimatorJob.

Definition at line 128 of file qquickanimatorjob_p.h.

◆ controller()

QQuickAnimatorController * QQuickAnimatorJob::controller ( ) const
inline

Definition at line 135 of file qquickanimatorjob_p.h.

Referenced by initialize().

+ Here is the caller graph for this function:

◆ debugAnimation()

void QQuickAnimatorJob::debugAnimation ( QDebug d) const
overrideprotectedvirtual

Reimplemented from QAbstractAnimationJob.

Definition at line 237 of file qquickanimatorjob.cpp.

References d, Qt::dec(), duration(), Qt::hex(), m_target, m_value, and QAbstractAnimationJob::state().

+ Here is the call graph for this function:

◆ duration()

int QQuickAnimatorJob::duration ( ) const
inlineoverridevirtual

Reimplemented from QAbstractAnimationJob.

Definition at line 100 of file qquickanimatorjob_p.h.

Referenced by debugAnimation().

+ Here is the caller graph for this function:

◆ easingCurve()

QEasingCurve QQuickAnimatorJob::easingCurve ( ) const
inline

Definition at line 102 of file qquickanimatorjob_p.h.

◆ from()

qreal QQuickAnimatorJob::from ( ) const
inline

Definition at line 91 of file qquickanimatorjob_p.h.

◆ initialize()

void QQuickAnimatorJob::initialize ( QQuickAnimatorController * controller)
virtual

Definition at line 276 of file qquickanimatorjob.cpp.

References controller(), and m_controller.

+ Here is the call graph for this function:

◆ invalidate()

virtual void QQuickAnimatorJob::invalidate ( )
pure virtual

◆ isTransform()

bool QQuickAnimatorJob::isTransform ( ) const
inline

Definition at line 130 of file qquickanimatorjob_p.h.

◆ isUniform()

bool QQuickAnimatorJob::isUniform ( ) const
inline

Definition at line 131 of file qquickanimatorjob_p.h.

◆ postSync()

virtual void QQuickAnimatorJob::postSync ( )
inlinevirtual

Reimplemented in QQuickOpacityAnimatorJob.

Definition at line 123 of file qquickanimatorjob_p.h.

◆ preSync()

virtual void QQuickAnimatorJob::preSync ( )
inlinevirtual

Reimplemented in QQuickTransformAnimatorJob.

Definition at line 119 of file qquickanimatorjob_p.h.

◆ progress()

qreal QQuickAnimatorJob::progress ( int time) const
protected

Definition at line 244 of file qquickanimatorjob.cpp.

References m_duration, m_easing, time, and QEasingCurve::valueForProgress().

Referenced by QQuickScaleAnimatorJob::updateCurrentTime(), QQuickXAnimatorJob::updateCurrentTime(), QQuickYAnimatorJob::updateCurrentTime(), QQuickRotationAnimatorJob::updateCurrentTime(), and QQuickOpacityAnimatorJob::updateCurrentTime().

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

◆ setDuration()

void QQuickAnimatorJob::setDuration ( int duration)
inline

Definition at line 99 of file qquickanimatorjob_p.h.

Referenced by QQuickAnimatorPrivate::apply().

+ Here is the caller graph for this function:

◆ setEasingCurve()

void QQuickAnimatorJob::setEasingCurve ( const QEasingCurve & curve)
inline

Definition at line 103 of file qquickanimatorjob_p.h.

Referenced by QQuickAnimatorPrivate::apply().

+ Here is the caller graph for this function:

◆ setFrom()

void QQuickAnimatorJob::setFrom ( qreal from)
inline

Definition at line 87 of file qquickanimatorjob_p.h.

Referenced by QQuickAnimatorPrivate::apply().

+ Here is the caller graph for this function:

◆ setTarget()

void QQuickAnimatorJob::setTarget ( QQuickItem * target)
virtual

Reimplemented in QQuickTransformAnimatorJob.

Definition at line 271 of file qquickanimatorjob.cpp.

References m_target, and target().

Referenced by QQuickAnimatorPrivate::apply(), and QQuickTransformAnimatorJob::setTarget().

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

◆ setTo()

void QQuickAnimatorJob::setTo ( qreal to)
inline

Definition at line 93 of file qquickanimatorjob_p.h.

Referenced by QQuickAnimatorPrivate::apply().

+ Here is the caller graph for this function:

◆ target()

QQuickItem * QQuickAnimatorJob::target ( ) const
inline

Definition at line 85 of file qquickanimatorjob_p.h.

Referenced by QQuickAnimatorPrivate::apply(), setTarget(), and QQuickAnimator::transition().

+ Here is the caller graph for this function:

◆ to()

qreal QQuickAnimatorJob::to ( ) const
inline

Definition at line 97 of file qquickanimatorjob_p.h.

◆ value()

qreal QQuickAnimatorJob::value ( ) const

Definition at line 260 of file qquickanimatorjob.cpp.

References QQuickAnimatorController::lock(), m_controller, m_to, m_value, QQuickAnimatorController::unlock(), and value().

Referenced by value(), QQuickScaleAnimatorJob::writeBack(), QQuickXAnimatorJob::writeBack(), QQuickYAnimatorJob::writeBack(), QQuickRotationAnimatorJob::writeBack(), and QQuickOpacityAnimatorJob::writeBack().

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

◆ writeBack()

virtual void QQuickAnimatorJob::writeBack ( )
pure virtual

Member Data Documentation

◆ m_controller

QQuickAnimatorController* QQuickAnimatorJob::m_controller
protected

Definition at line 145 of file qquickanimatorjob_p.h.

Referenced by initialize(), and value().

◆ m_duration

int QQuickAnimatorJob::m_duration
protected

Definition at line 153 of file qquickanimatorjob_p.h.

Referenced by progress().

◆ m_easing

QEasingCurve QQuickAnimatorJob::m_easing
protected

Definition at line 151 of file qquickanimatorjob_p.h.

Referenced by progress().

◆ m_from

◆ m_isTransform

uint QQuickAnimatorJob::m_isTransform
protected

◆ m_isUniform

uint QQuickAnimatorJob::m_isUniform
protected

Definition at line 156 of file qquickanimatorjob_p.h.

◆ m_target

◆ m_to

◆ m_value


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