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
qquickparticleextruder.cpp
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
5#include <QRandomGenerator>
6
8
23
25{
26 return QPointF(QRandomGenerator::global()->generateDouble() * rect.width() + rect.x(),
27 QRandomGenerator::global()->generateDouble() * rect.height() + rect.y());
28}
29
30bool QQuickParticleExtruder::contains(const QRectF &bounds, const QPointF &point)
31{
32 return bounds.contains(point);
33}
34
36
37#include "moc_qquickparticleextruder_p.cpp"
\inmodule QtCore
Definition qobject.h:103
\inmodule QtCore\reentrant
Definition qpoint.h:217
virtual bool contains(const QRectF &bounds, const QPointF &point)
virtual QPointF extrude(const QRectF &)
QQuickParticleExtruder(QObject *parent=nullptr)
\qmltype ParticleExtruder \instantiates QQuickParticleExtruder \inqmlmodule QtQuick....
static Q_DECL_CONST_FUNCTION QRandomGenerator * global()
\threadsafe
Definition qrandom.h:275
\inmodule QtCore\reentrant
Definition qrect.h:484
bool contains(const QRectF &r) const noexcept
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition qrect.cpp:1993
rect
[4]
Combined button and popup list for selecting options.
return generateDouble() *highest
[11]