Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QQUICK3DPARTICLEEMITBURST_H
5#define QQUICK3DPARTICLEEMITBURST_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 <QObject>
19#include <QQmlEngine>
20#include <QtQml/qqmlparserstatus.h>
21#include <QtQuick3DParticles/qtquick3dparticlesglobal.h>
22#include <private/qglobal_p.h>
23
25
27
28class Q_QUICK3DPARTICLES_EXPORT QQuick3DParticleEmitBurst : public QObject, public QQmlParserStatus
29{
31 Q_PROPERTY(int time READ time WRITE setTime NOTIFY timeChanged)
32 Q_PROPERTY(int amount READ amount WRITE setAmount NOTIFY amountChanged)
33 Q_PROPERTY(int duration READ duration WRITE setDuration NOTIFY durationChanged)
34
35 QML_NAMED_ELEMENT(EmitBurst3D)
38
39public:
40 QQuick3DParticleEmitBurst(QObject *parent = nullptr);
41 ~QQuick3DParticleEmitBurst() override;
42
43 int time() const;
44 int amount() const;
45 int duration() const;
46
47public Q_SLOTS:
48 void setTime(int time);
49 void setAmount(int amount);
50 void setDuration(int duration);
51
53 void timeChanged();
54 void amountChanged();
55 void durationChanged();
56
57protected:
58 // From QQmlParserStatus
59 void componentComplete() override;
60 void classBegin() override {}
61
62private:
64
65 QQuick3DParticleEmitter *m_parentEmitter = nullptr;
66 int m_time = 0;
67 int m_amount = 0;
68 int m_duration = 0;
69};
70
72
73#endif // QQUICK3DPARTICLEEMITBURST_H
\inmodule QtCore
Definition qobject.h:103
The QQmlParserStatus class provides updates on the QML parser state.
Combined button and popup list for selecting options.
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_INTERFACES(x)
#define Q_SLOTS
#define Q_SIGNALS
animation setDuration(1000)