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
qquick3dparticledynamicburst_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 GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
6
#
ifndef
QQUICK3DPARTICLEDYNAMICBURST_H
7
#
define
QQUICK3DPARTICLEDYNAMICBURST_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
<
QtQuick3DParticles
/
private
/
qquick3dparticleemitburst_p
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
class
Q_QUICK3DPARTICLES_EXPORT
QQuick3DParticleDynamicBurst
:
public
QQuick3DParticleEmitBurst
25
{
26
Q_OBJECT
27
Q_PROPERTY(
bool
enabled READ enabled WRITE setEnabled NOTIFY enabledChanged)
28
Q_PROPERTY(
int
amountVariation READ amountVariation WRITE setAmountVariation NOTIFY amountVariationChanged)
29
Q_PROPERTY(TriggerMode triggerMode READ triggerMode WRITE setTriggerMode NOTIFY triggerModeChanged)
30
QML_NAMED_ELEMENT(DynamicBurst3D)
31
QML_ADDED_IN_VERSION(6, 3)
32
33
public
:
34
enum
TriggerMode
35
{
36
TriggerTime = 0,
37
TriggerStart,
38
TriggerEnd
39
};
40
Q_ENUM(TriggerMode)
41
42
explicit
QQuick3DParticleDynamicBurst(QObject *parent =
nullptr
);
43
bool
enabled()
const
;
44
int
amountVariation()
const
;
45
TriggerMode triggerMode()
const
;
46
47
public
Q_SLOTS:
48
void
setEnabled(
bool
enabled);
49
void
setAmountVariation(
int
value);
50
void
setTriggerMode(TriggerMode mode);
51
52
Q_SIGNALS:
53
void
enabledChanged();
54
void
amountVariationChanged();
55
void
triggerModeChanged();
56
57
private
:
58
friend
class
QQuick3DParticleEmitter;
59
60
bool
m_enabled =
true
;
61
int
m_amountVariation = 0;
62
TriggerMode m_triggerMode = TriggerMode::TriggerTime;
63
};
64
65
QT_END_NAMESPACE
66
67
#
endif
// QQUICK3DPARTICLEDYNAMICBURST_H
QQuick3DParticleDynamicBurst
Definition
qquick3dparticledynamicburst_p.h:25
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtquick3d
src
quick3dparticles
qquick3dparticledynamicburst_p.h
Generated on
for Qt by
1.18.0