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
qquickgroupgoal_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 GROUPGOALAFFECTOR_H
5#define GROUPGOALAFFECTOR_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//
18
20
22
23class Q_QUICKPARTICLES_EXPORT QQuickGroupGoalAffector : public QQuickParticleAffector
24{
26 Q_PROPERTY(QString goalState READ goalState WRITE setGoalState NOTIFY goalStateChanged)
27 Q_PROPERTY(bool jump READ jump WRITE setJump NOTIFY jumpChanged)
28 QML_NAMED_ELEMENT(GroupGoal)
30public:
32
33 QString goalState() const
34 {
35 return m_goalState;
36 }
37
38 bool jump() const
39 {
40 return m_jump;
41 }
42
43protected:
44 bool affectParticle(QQuickParticleData *d, qreal dt) override;
45
47
49
50 void jumpChanged(bool arg);
51
52public Q_SLOTS:
53
54 void setGoalState(const QString &arg);
55
56 void setJump(bool arg)
57 {
58 if (m_jump != arg) {
59 m_jump = arg;
60 Q_EMIT jumpChanged(arg);
61 }
62 }
63
64private:
65 QString m_goalState;
66 bool m_jump;
67};
68
70
71#endif // GROUPGOALAFFECTOR_H
void jumpChanged(bool arg)
void goalStateChanged(const QString &arg)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
static void jump(QtMsgType t, const QMessageLogContext &context, const QString &m)
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
SSL_CTX int void * arg
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_EMIT
#define Q_SLOTS
#define Q_SIGNALS
double qreal
Definition qtypes.h:187
#define explicit