Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qquickanimationrootitem_p.h
Go to the documentation of this file.
1
// Copyright (C) 2026 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
QQUICKANIMATIONROOTITEM_P_H
5
#
define
QQUICKANIMATIONROOTITEM_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
<
QtQuickVectorImageGenerator
/
qtquickvectorimagegeneratorexports
.
h
>
19
20
#
include
<
QtCore
/
qlist
.
h
>
21
#
include
<
QtCore
/
qpointer
.
h
>
22
#
include
<
QtCore
/
qvariant
.
h
>
23
#
include
<
QtQuick
/
qquickitem
.
h
>
24
#
include
<
QtQuick
/
private
/
qquickanimation_p
.
h
>
25
26
QT_BEGIN_NAMESPACE
27
28
class
Q_QUICKVECTORIMAGEGENERATOR_EXPORT
QQuickAnimationRootItem
:
public
QQuickItem
29
{
30
Q_OBJECT
31
Q_PROPERTY(
bool
paused READ paused WRITE setPaused NOTIFY pausedChanged)
32
Q_PROPERTY(
int
loops READ loops WRITE setLoops NOTIFY loopsChanged)
33
Q_PROPERTY(QVariantMap markers READ markers WRITE setMarkersData NOTIFY markersChanged)
34
Q_PROPERTY(qreal startFrame READ startFrame WRITE setStartFrame NOTIFY startFrameChanged)
35
Q_PROPERTY(qreal endFrame READ endFrame WRITE setEndFrame NOTIFY endFrameChanged)
36
Q_PROPERTY(qreal frameRate READ frameRate WRITE setFrameRate NOTIFY frameRateChanged)
37
Q_PROPERTY(
38
qreal frameCounter READ frameCounter WRITE setFrameCounter NOTIFY frameCounterChanged)
39
public
:
40
explicit
QQuickAnimationRootItem(QQuickItem *parent =
nullptr
);
41
42
bool
paused()
const
;
43
void
setPaused(
bool
paused);
44
45
int
loops()
const
;
46
void
setLoops(
int
loops);
47
48
QVariantMap markers()
const
;
49
void
setMarkersData(
const
QVariantMap &markers);
50
51
qreal startFrame()
const
;
52
void
setStartFrame(qreal startFrame);
53
54
qreal endFrame()
const
;
55
void
setEndFrame(qreal endFrame);
56
57
qreal frameRate()
const
;
58
void
setFrameRate(qreal frameRate);
59
60
qreal frameCounter()
const
;
61
void
setFrameCounter(qreal frameCounter);
62
63
Q_INVOKABLE
void
restart();
64
65
void
addMasterAnimation(QQuickAbstractAnimation *anim);
66
67
Q_SIGNALS:
68
void
pausedChanged();
69
void
loopsChanged();
70
void
markersChanged();
71
void
startFrameChanged();
72
void
endFrameChanged();
73
void
frameRateChanged();
74
void
frameCounterChanged();
75
76
private
:
77
bool
m_paused =
false
;
78
int
m_loops = 1;
79
QVariantMap m_markers;
80
qreal m_startFrame = 0;
81
qreal m_endFrame = 0;
82
qreal m_frameRate = 0;
83
qreal m_frameCounter = 0;
84
QList<QPointer<QQuickAbstractAnimation>> m_masterAnimations;
85
};
86
87
QT_END_NAMESPACE
88
89
#
endif
// QQUICKANIMATIONROOTITEM_P_H
QQuickAnimationRootItem
Definition
qquickanimationrootitem_p.h:29
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
quickvectorimage
generator
qquickanimationrootitem_p.h
Generated on
for Qt by
1.18.0