Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickfriction_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 FRICTIONAFFECTOR_H
5
#define FRICTIONAFFECTOR_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
#include "
qquickparticleaffector_p.h
"
18
19
QT_BEGIN_NAMESPACE
20
21
class
Q_QUICKPARTICLES_PRIVATE_EXPORT
QQuickFrictionAffector
:
public
QQuickParticleAffector
22
{
23
Q_OBJECT
24
Q_PROPERTY
(
qreal
factor READ factor WRITE setFactor NOTIFY factorChanged FINAL)
25
Q_PROPERTY
(
qreal
threshold READ threshold WRITE setThreshold NOTIFY thresholdChanged FINAL)
26
QML_NAMED_ELEMENT
(Friction)
27
QML_ADDED_IN_VERSION
(2, 0)
28
public
:
29
explicit
QQuickFrictionAffector
(
QQuickItem
*
parent
=
nullptr
);
30
31
qreal
factor
()
const
32
{
33
return
m_factor;
34
}
35
36
qreal
threshold
()
const
37
{
38
return
m_threshold;
39
}
40
41
protected
:
42
bool
affectParticle
(
QQuickParticleData
*
d
,
qreal
dt)
override
;
43
44
Q_SIGNALS
:
45
46
void
factorChanged
(
qreal
arg
);
47
void
thresholdChanged
(
qreal
arg
);
48
49
public
Q_SLOTS
:
50
51
void
setFactor
(
qreal
arg
)
52
{
53
if
(m_factor !=
arg
) {
54
m_factor =
arg
;
55
Q_EMIT
factorChanged(
arg
);
56
}
57
}
58
59
void
setThreshold
(
qreal
arg
)
60
{
61
if
(m_threshold !=
arg
) {
62
m_threshold =
arg
;
63
Q_EMIT
thresholdChanged(
arg
);
64
}
65
}
66
67
private
:
68
qreal
m_factor;
69
qreal
m_threshold;
70
};
71
72
QT_END_NAMESPACE
73
#endif
// FRICTIONAFFECTOR_H
QQuickFrictionAffector
Definition
qquickfriction_p.h:22
QQuickFrictionAffector::setThreshold
void setThreshold(qreal arg)
Definition
qquickfriction_p.h:59
QQuickFrictionAffector::threshold
qreal threshold() const
Definition
qquickfriction_p.h:36
QQuickFrictionAffector::factorChanged
void factorChanged(qreal arg)
QQuickFrictionAffector::factor
qreal factor() const
Definition
qquickfriction_p.h:31
QQuickFrictionAffector::setFactor
void setFactor(qreal arg)
Definition
qquickfriction_p.h:51
QQuickFrictionAffector::thresholdChanged
void thresholdChanged(qreal arg)
QQuickItem
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition
qquickitem.h:64
QQuickParticleAffector
Definition
qquickparticleaffector_p.h:27
QQuickParticleAffector::affectParticle
virtual bool affectParticle(QQuickParticleData *d, qreal dt)
Definition
qquickparticleaffector.cpp:207
QQuickParticleData
Definition
qquickparticlesystem_p.h:211
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
QML_NAMED_ELEMENT
#define QML_NAMED_ELEMENT(NAME)
Definition
qqmlintegration.h:52
QML_ADDED_IN_VERSION
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
Definition
qqmlintegration.h:86
qquickparticleaffector_p.h
arg
SSL_CTX int(*) void arg)
Definition
qsslsocket_openssl_symbols.cpp:404
Q_PROPERTY
#define Q_PROPERTY(...)
Definition
qtmetamacros.h:56
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:117
Q_EMIT
#define Q_EMIT
Definition
qtmetamacros.h:47
Q_SLOTS
#define Q_SLOTS
Definition
qtmetamacros.h:44
Q_SIGNALS
#define Q_SIGNALS
Definition
qtmetamacros.h:45
qreal
double qreal
Definition
qtypes.h:92
d
double d
Definition
src_corelib_text_qlocale.cpp:9
parent
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent
Definition
uiaclientinterfaces_p.h:209
qtdeclarative
src
particles
qquickfriction_p.h
Generated by
1.9.7