Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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_PRIVATE_EXPORT QQuickPathInterpolator : public QObject
29{
31 Q_PROPERTY(QQuickPath *path READ path WRITE setPath NOTIFY pathChanged FINAL)
32 Q_PROPERTY(qreal progress READ progress WRITE setProgress NOTIFY progressChanged FINAL)
33 Q_PROPERTY(qreal x READ x NOTIFY xChanged FINAL)
34 Q_PROPERTY(qreal y READ y NOTIFY yChanged FINAL)
35 Q_PROPERTY(qreal angle READ angle NOTIFY angleChanged FINAL)
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
54 void xChanged();
55 void yChanged();
57
58private Q_SLOTS:
59 void _q_pathUpdated();
60
61private:
62 QQuickPath *_path;
63 qreal _x;
64 qreal _y;
65 qreal _angle;
66 qreal _progress;
67};
68
70
72
73#endif // QQUICKPATHINTERPOLATOR_P_H
\inmodule QtCore
Definition qobject.h:90
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_DECLARE_TYPE(TYPE)
Definition qqml.h:19
#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:92
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent