4#ifndef QABSTRACTANIMATION_P_H
5#define QABSTRACTANIMATION_P_H
18#include <QtCore/qbasictimer.h>
19#include <QtCore/qdatetime.h>
20#include <QtCore/qtimer.h>
21#include <QtCore/qelapsedtimer.h>
22#include <private/qobject_p.h>
23#include <private/qproperty_p.h>
57 void setCurrentTime(
int msecs) { q_func()->setCurrentTime(msecs); }
59 &QAbstractAnimationPrivate::setCurrentTime, 0)
64 void emitCurrentLoopChanged() {
Q_EMIT q_func()->currentLoopChanged(currentLoop); }
68 bool deleteWhenStopped =
false;
69 bool hasRegisteredTimer =
false;
121 bool isRegistered =
false;
122 bool isPaused =
false;
123 int pauseDuration = 0;
145 void setTimingInterval(
int interval);
162 void maybeUpdateAnimationsToCurrentTime();
163 void updateAnimationTimers();
166 int runningAnimationCount();
167 void registerProfilerCallback(
void (*
cb)(
qint64));
169 void startAnimationDriver();
170 void stopAnimationDriver();
193 int currentAnimationIdx;
196 bool consistentTiming;
198 bool startTimersPending;
199 bool stopTimerPending;
200 bool allowNegativeDelta;
205 qreal slowdownFactor;
211 int closestPausedAnimationTimerTimeToFinish();
238 static void ensureTimerUpdate();
244 static void updateAnimationTimer();
246 void restartAnimationTimer()
override;
247 void updateAnimationsTime(
qint64 delta)
override;
253 void startAnimations();
258 int currentAnimationIdx;
260 bool startAnimationPending;
261 bool stopTimerPending;
266 int runningLeafAnimations;
272 int closestPauseAnimationTimeToFinish();
Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QAbstractAnimationPrivate, int, totalCurrentTime, &QAbstractAnimationPrivate::setCurrentTime, 0) int currentTime=0
QAbstractAnimationPrivate()
Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QAbstractAnimationPrivate, int, currentLoop, nullptr, &QAbstractAnimationPrivate::emitCurrentLoopChanged, 0) bool deleteWhenStopped
static QAbstractAnimationPrivate * get(QAbstractAnimation *q)
Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS(QAbstractAnimationPrivate, QAbstractAnimation::State, state, QAbstractAnimation::Stopped) void setState(QAbstractAnimation void setDirection(QAbstractAnimation::Direction direction)
Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QAbstractAnimationPrivate, QAbstractAnimation::Direction, direction, &QAbstractAnimationPrivate::setDirection, &QAbstractAnimationPrivate::emitDirectionChanged, QAbstractAnimation::Forward) void setCurrentTime(int msecs)
void emitCurrentLoopChanged()
void emitDirectionChanged()
virtual void restartAnimationTimer()=0
~QAbstractAnimationTimer() override
QAbstractAnimationTimer()
virtual void updateAnimationsTime(qint64 delta)=0
virtual int runningAnimationCount()=0
State
This enum describes the state of the animation.
Direction
This enum describes the direction of the animation when in \l Running state.
QAnimationDriverPrivate()
~QAnimationDriverPrivate() override
int runningAnimationCount() override
~QAnimationTimer() override
~QDefaultAnimationDriver() override
void setSlowModeEnabled(bool enabled)
void setSlowdownFactor(qreal factor)
~QUnifiedTimer() override
void setConsistentTiming(bool consistent)
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
static Q_CONSTINIT QBasicAtomicInt running
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLdouble GLdouble GLdouble GLdouble q
#define Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS(...)
SSL_CTX int(* cb)(SSL *ssl, unsigned char **out, unsigned char *outlen, const unsigned char *in, unsigned int inlen, void *arg)
static double elapsed(qint64 after, qint64 before)
#define QT_REQUIRE_CONFIG(feature)
static double currentTime()