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
qquickpathinterpolator_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 QQUICKPATHINTERPOLATOR_P_H
5#define QQUICKPATHINTERPOLATOR_P_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 <private/qtquickglobal_p.h>
19
21
22#include <qqml.h>
23#include <QObject>
24
26
27class QQuickPath;
28class Q_QUICK_EXPORT QQuickPathInterpolator : public QObject
29{
31 Q_PROPERTY(QQuickPath *path READ path WRITE setPath NOTIFY pathChanged)
32 Q_PROPERTY(qreal progress READ progress WRITE setProgress NOTIFY progressChanged)
33 Q_PROPERTY(qreal x READ x NOTIFY xChanged)
34 Q_PROPERTY(qreal y READ y NOTIFY yChanged)
35 Q_PROPERTY(qreal angle READ angle NOTIFY angleChanged)
36 QML_NAMED_ELEMENT(PathInterpolator)
38public:
39 explicit QQuickPathInterpolator(QObject *parent = nullptr);
40
41 QQuickPath *path() const;
42 void setPath(QQuickPath *path);
43
44 qreal progress() const;
45 void setProgress(qreal progress);
46
47 qreal x() const;
48 qreal y() const;
49 qreal angle() const;
50
52 void pathChanged();
53 void progressChanged();
54 void xChanged();
55 void yChanged();
56 void angleChanged();
57
59 void _q_pathUpdated();
60
62 QQuickPath *_path;
63 qreal _x;
64 qreal _y;
65 qreal _angle;
66 qreal _progress;
67};
68
70
71#endif // QQUICKPATHINTERPOLATOR_P_H
\inmodule QtCore
Definition qobject.h:103
Combined button and popup list for selecting options.
GLint GLint GLint GLint GLint x
[0]
GLfloat angle
GLint y
GLsizei const GLchar *const * path
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define QT_REQUIRE_CONFIG(feature)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS
double qreal
Definition qtypes.h:187
#define explicit