4#ifndef QABSTRACTANIMATIONJOB_P_H
5#define QABSTRACTANIMATIONJOB_P_H
18#include <private/qtqmlglobal_p.h>
19#include <private/qanimationjobutil_p.h>
20#include <private/qdoubleendedlist_p.h>
21#include <QtCore/QObject>
22#include <QtCore/private/qabstractanimation_p.h>
55 void setLoopCount(
int loopCount);
57 int totalDuration()
const;
69 inline bool isStopped() {
return m_state == Stopped; }
70 inline bool isPaused() {
return m_state == Paused; }
71 void setDisableUserControl();
72 void setEnableUserControl();
73 bool userControlDisabled()
const;
75 void setCurrentTime(
int msecs);
94 bool isGroup()
const {
return m_isGroup; }
106 virtual void debugAnimation(
QDebug d)
const;
108 void fireTopLevelAnimationLoopChanged();
114 void currentLoopChanged();
135 QAbstractAnimationJob::ChangeTypes
types;
184 void ensureTimerUpdate();
190 void updateAnimationTimer();
192 void restartAnimationTimer()
override;
193 void updateAnimationsTime(
qint64 timeStep)
override;
201 void startAnimations();
206 int currentAnimationIdx;
208 bool startAnimationPending;
209 bool stopTimerPending;
214 int runningLeafAnimations;
221 int closestPauseAnimationTimeToFinish();
std::vector< ChangeListener > changeListeners
bool m_hasCurrentTimeChangeListeners
int m_uncontrolledFinishTime
QAbstractAnimationJob::State m_state
virtual int duration() const
int m_currentLoopStartTime
bool m_hasRegisteredTimer
QAbstractAnimationJob::State state() const
SelfDeletable m_selfDeletable
bool m_disableUserControl
bool isRenderThreadJob() const
QAnimationGroupJob * group() const
void directionChanged(QAbstractAnimationJob::Direction)
virtual void updateLoopCount(int)
QAbstractAnimationJob::Direction m_direction
int currentLoopTime() const
virtual void topLevelAnimationLoopChanged()
QAbstractAnimationJob::Direction direction() const
virtual void updateCurrentTime(int)
bool isRenderThreadProxy() const
QAnimationGroupJob * m_group
bool m_isRenderThreadProxy
virtual void animationStateChanged(QAbstractAnimationJob *, QAbstractAnimationJob::State, QAbstractAnimationJob::State)
virtual void animationCurrentLoopChanged(QAbstractAnimationJob *)
virtual void animationFinished(QAbstractAnimationJob *)
virtual void animationCurrentTimeChanged(QAbstractAnimationJob *, int)
bool hasStartAnimationPending() const
int runningAnimationCount() override
void newState(QList< State > &states, const char *token, const char *lexem, bool pre)
Combined button and popup list for selecting options.
Q_QML_PRIVATE_EXPORT QDebug operator<<(QDebug, const QAbstractAnimationJob *job)
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
GLsizei GLenum GLenum * types
#define QT_REQUIRE_CONFIG(feature)
static double currentTime()
QAbstractAnimationJob::ChangeTypes types
QAnimationJobChangeListener * listener
ChangeListener(QAnimationJobChangeListener *l, QAbstractAnimationJob::ChangeTypes t)
bool operator==(const ChangeListener &other) const