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
qquickframeanimation_p.h
Go to the documentation of this file.
1
// Copyright (C) 2022 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
QQUICKFRAMEANIMATION_H
6
#
define
QQUICKFRAMEANIMATION_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
qqml
.
h
>
20
#
include
<
QtCore
/
qobject
.
h
>
21
#
include
<
private
/
qtqmlglobal_p
.
h
>
22
#
include
<
private
/
qtquickglobal_p
.
h
>
23
24
QT_BEGIN_NAMESPACE
25
26
class
QQuickFrameAnimationPrivate
;
27
class
Q_QUICK_EXPORT
QQuickFrameAnimation
:
public
QObject,
public
QQmlParserStatus
28
{
29
Q_OBJECT
30
Q_DECLARE_PRIVATE(QQuickFrameAnimation)
31
Q_INTERFACES(QQmlParserStatus)
32
Q_PROPERTY(
bool
running READ isRunning WRITE setRunning NOTIFY runningChanged)
33
Q_PROPERTY(
bool
paused READ isPaused WRITE setPaused NOTIFY pausedChanged)
34
Q_PROPERTY(
int
currentFrame READ currentFrame NOTIFY currentFrameChanged)
35
Q_PROPERTY(qreal frameTime READ frameTime NOTIFY frameTimeChanged)
36
Q_PROPERTY(qreal smoothFrameTime READ smoothFrameTime NOTIFY smoothFrameTimeChanged)
37
Q_PROPERTY(qreal elapsedTime READ elapsedTime NOTIFY elapsedTimeChanged)
38
QML_NAMED_ELEMENT(FrameAnimation)
39
QML_ADDED_IN_VERSION(6, 4)
40
41
public
:
42
QQuickFrameAnimation(QObject *parent =
nullptr
);
43
44
bool
isRunning()
const
;
45
void
setRunning(
bool
running);
46
47
bool
isPaused()
const
;
48
void
setPaused(
bool
paused);
49
50
int
currentFrame()
const
;
51
qreal frameTime()
const
;
52
qreal smoothFrameTime()
const
;
53
qreal elapsedTime()
const
;
54
55
protected
:
56
void
classBegin() override;
57
void
componentComplete() override;
58
59
public
Q_SLOTS:
60
void
start();
61
void
stop();
62
void
restart();
63
void
pause();
64
void
resume();
65
void
reset();
66
67
Q_SIGNALS:
68
void
triggered();
69
void
runningChanged();
70
void
pausedChanged();
71
void
currentFrameChanged();
72
void
frameTimeChanged();
73
void
smoothFrameTimeChanged();
74
void
elapsedTimeChanged();
75
76
private
:
77
void
setCurrentFrame(
int
frame);
78
void
setElapsedTime(qreal elapsedTime);
79
80
};
81
82
QT_END_NAMESPACE
83
84
#
endif
QFrameAnimationJob
Definition
qquickframeanimation.cpp:16
QFrameAnimationJob::duration
int duration() const override
Definition
qquickframeanimation.cpp:17
QQuickFrameAnimationPrivate
Definition
qquickframeanimation.cpp:23
QQuickFrameAnimation
Definition
qquickframeanimation_p.h:28
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
quick
util
qquickframeanimation_p.h
Generated on
for Qt by
1.18.0