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
4#ifndef QQUICKSPRITESEQUENCE_P_P_H
5#define QQUICKSPRITESEQUENCE_P_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <private/qtquickglobal_p.h>
19
20QT_REQUIRE_CONFIG(quick_sprite);
21
22#include "qquickitem_p.h"
23#include "qquicksprite_p.h"
24#include <QElapsedTimer>
25
26QT_BEGIN_NAMESPACE
27
28class QQuickSpriteSequence;
29
30class QQuickSpriteSequencePrivate :public QQuickItemPrivate
31{
32 Q_DECLARE_PUBLIC(QQuickSpriteSequence)
33public:
34 QQuickSpriteSequencePrivate()
35 : m_spriteEngine(nullptr)
36 , m_curFrame(0)
37 , m_pleaseReset(false)
38 , m_running(true)
39 , m_interpolate(true)
40 , m_curStateIdx(0)
41 {
42
43 }
44 QList<QQuickSprite*> m_sprites;
45 QQuickSpriteEngine* m_spriteEngine;
46 QElapsedTimer m_timestamp;
47 int m_curFrame;
48 bool m_pleaseReset;
49 bool m_running;
50 bool m_interpolate;
51 QString m_goalState;
52 QString m_curState;
53 int m_curStateIdx;
54 QSize m_sheetSize;
55};
56
57QT_END_NAMESPACE
58
59#endif // QQUICKSPRITESEQUENCE_P_P_H
60

source code of qtdeclarative/src/quick/items/qquickspritesequence_p_p.h