1// Copyright (C) 2021 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 PARTICLEEXTRUDER_H
5#define PARTICLEEXTRUDER_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 <QRectF>
20#include <QPointF>
21#include <QtQml/qqml.h>
22#include <QtCore/private/qglobal_p.h>
23#include <QtQuickParticles/private/qtquickparticlesexports_p.h>
24
25QT_BEGIN_NAMESPACE
26
27class Q_QUICKPARTICLES_PRIVATE_EXPORT QQuickParticleExtruder : public QObject
28{
29 Q_OBJECT
30
31 QML_NAMED_ELEMENT(ParticleExtruder)
32 QML_ADDED_IN_VERSION(2, 0)
33 QML_UNCREATABLE("Abstract type. Use one of the inheriting types instead.")
34
35public:
36 explicit QQuickParticleExtruder(QObject *parent = nullptr);
37 virtual QPointF extrude(const QRectF &);
38 virtual bool contains(const QRectF &bounds, const QPointF &point);
39};
40
41QT_END_NAMESPACE
42
43#endif // PARTICLEEXTRUDER_H
44

source code of qtdeclarative/src/particles/qquickparticleextruder_p.h