Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qanimationgroup.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QANIMATIONGROUP_H
6#define QANIMATIONGROUP_H
7
8#include <QtCore/qabstractanimation.h>
9
11
12QT_BEGIN_NAMESPACE
13
14class QAnimationGroupPrivate;
15class Q_CORE_EXPORT QAnimationGroup : public QAbstractAnimation
16{
17 Q_OBJECT
18
19public:
20 QAnimationGroup(QObject *parent = nullptr);
21 ~QAnimationGroup();
22
23 QAbstractAnimation *animationAt(int index) const;
24 int animationCount() const;
25 int indexOfAnimation(QAbstractAnimation *animation) const;
26 void addAnimation(QAbstractAnimation *animation);
27 void insertAnimation(int index, QAbstractAnimation *animation);
28 void removeAnimation(QAbstractAnimation *animation);
29 QAbstractAnimation *takeAnimation(int index);
30 void clear();
31
32protected:
33 QAnimationGroup(QAnimationGroupPrivate &dd, QObject *parent);
34 bool event(QEvent *event) override;
35
36private:
37 Q_DISABLE_COPY(QAnimationGroup)
38 Q_DECLARE_PRIVATE(QAnimationGroup)
39};
40
41QT_END_NAMESPACE
42
43#endif //QANIMATIONGROUP_H
\inmodule QtCore
\inmodule QtCore
static void unregisterAnimation(QAbstractAnimation *animation)
static QAnimationTimer * instance(bool create)
static void updateAnimationTimer()
void updateAnimationsTime(qint64 delta) override
~QAnimationTimer() override
void restartAnimationTimer() override
static void ensureTimerUpdate()
static void registerAnimation(QAbstractAnimation *animation, bool isTopLevel)
static QAnimationTimer * instance()
void timerEvent(QTimerEvent *e) override
This event handler can be reimplemented in a subclass to receive timer events for the object.
QList< QAbstractAnimation * >::ConstIterator AnimationListConstIt
#define DEFAULT_TIMER_INTERVAL
QT_BEGIN_NAMESPACE typedef QList< QAbstractAnimationTimer * >::ConstIterator TimerListConstIt
#define PAUSE_TIMER_COARSE_THRESHOLD
QT_REQUIRE_CONFIG(animation)
QT_REQUIRE_CONFIG(animation)