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 VARYINGVECTOR_H
5#define VARYINGVECTOR_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 <QPointF>
20#include <QtQml/qqml.h>
21#include <QtCore/private/qglobal_p.h>
22#include <QtQuickParticles/private/qtquickparticlesexports_p.h>
23
24QT_BEGIN_NAMESPACE
25
26class Q_QUICKPARTICLES_PRIVATE_EXPORT QQuickDirection : public QObject
27{
28 Q_OBJECT
29 QML_NAMED_ELEMENT(NullVector)
30 QML_ADDED_IN_VERSION(2, 0)
31 QML_UNCREATABLE("Abstract type. Use one of the inheriting types instead.")
32
33public:
34 explicit QQuickDirection(QObject *parent = nullptr);
35
36 virtual QPointF sample(const QPointF &from);
37Q_SIGNALS:
38
39public Q_SLOTS:
40
41protected:
42};
43
44QT_END_NAMESPACE
45#endif // VARYINGVECTOR_H
46

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