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
qquick3dparticleemitburst_p.h
Go to the documentation of this file.
1
// Copyright (C) 2021 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
6
#
ifndef
QQUICK3DPARTICLEEMITBURST_H
7
#
define
QQUICK3DPARTICLEEMITBURST_H
8
9
//
10
// W A R N I N G
11
// -------------
12
//
13
// This file is not part of the Qt API. It exists purely as an
14
// implementation detail. This header file may change from version to
15
// version without notice, or even be removed.
16
//
17
// We mean it.
18
//
19
20
#
include
<
QObject
>
21
#
include
<
QQmlEngine
>
22
#
include
<
QtQml
/
qqmlparserstatus
.
h
>
23
#
include
<
QtQuick3DParticles
/
qtquick3dparticlesglobal
.
h
>
24
#
include
<
private
/
qglobal_p
.
h
>
25
26
QT_BEGIN_NAMESPACE
27
28
class
QQuick3DParticleEmitter;
29
30
class
Q_QUICK3DPARTICLES_EXPORT
QQuick3DParticleEmitBurst
:
public
QObject,
public
QQmlParserStatus
31
{
32
Q_OBJECT
33
Q_PROPERTY(
int
time READ time WRITE setTime NOTIFY timeChanged)
34
Q_PROPERTY(
int
amount READ amount WRITE setAmount NOTIFY amountChanged)
35
Q_PROPERTY(
int
duration READ duration WRITE setDuration NOTIFY durationChanged)
36
37
QML_NAMED_ELEMENT(EmitBurst3D)
38
Q_INTERFACES(QQmlParserStatus)
39
QML_ADDED_IN_VERSION(6, 2)
40
41
public
:
42
QQuick3DParticleEmitBurst(QObject *parent =
nullptr
);
43
~QQuick3DParticleEmitBurst() override;
44
45
int
time()
const
;
46
int
amount()
const
;
47
int
duration()
const
;
48
49
public
Q_SLOTS:
50
void
setTime(
int
time);
51
void
setAmount(
int
amount);
52
void
setDuration(
int
duration);
53
54
Q_SIGNALS:
55
void
timeChanged();
56
void
amountChanged();
57
void
durationChanged();
58
59
protected
:
60
// From QQmlParserStatus
61
void
componentComplete() override;
62
void
classBegin() override {}
63
64
private
:
65
friend
class
QQuick3DParticleEmitter;
66
67
QQuick3DParticleEmitter *m_parentEmitter =
nullptr
;
68
int
m_time = 0;
69
int
m_amount = 0;
70
int
m_duration = 0;
71
};
72
73
QT_END_NAMESPACE
74
75
#
endif
// QQUICK3DPARTICLEEMITBURST_H
QQuick3DParticleEmitBurst
Definition
qquick3dparticleemitburst_p.h:31
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtquick3d
src
quick3dparticles
qquick3dparticleemitburst_p.h
Generated on
for Qt by
1.18.0