| 1 | // Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB). |
| 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 QT3DEXTRAS_QEXTRUDEDTEXTMESH_H |
| 5 | #define |
| 6 | |
| 7 | #include <Qt3DExtras/qt3dextras_global.h> |
| 8 | #include <Qt3DRender/qgeometryrenderer.h> |
| 9 | #include <QtCore/QString> |
| 10 | #include <QtGui/QFont> |
| 11 | |
| 12 | QT_BEGIN_NAMESPACE |
| 13 | |
| 14 | namespace Qt3DExtras { |
| 15 | |
| 16 | class Q_3DEXTRASSHARED_EXPORT : public Qt3DRender::QGeometryRenderer |
| 17 | { |
| 18 | Q_OBJECT |
| 19 | Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged) |
| 20 | Q_PROPERTY(QFont font READ font WRITE setFont NOTIFY fontChanged) |
| 21 | Q_PROPERTY(float depth READ depth WRITE setDepth NOTIFY depthChanged) |
| 22 | |
| 23 | public: |
| 24 | explicit (Qt3DCore::QNode *parent = nullptr); |
| 25 | (); |
| 26 | |
| 27 | QString () const; |
| 28 | QFont () const; |
| 29 | float () const; |
| 30 | |
| 31 | public Q_SLOTS: |
| 32 | void (const QString &text); |
| 33 | void (const QFont &font); |
| 34 | void (float depth); |
| 35 | |
| 36 | Q_SIGNALS: |
| 37 | void (const QString &text); |
| 38 | void (const QFont &font); |
| 39 | void (float depth); |
| 40 | }; |
| 41 | |
| 42 | } // namespace Qt3DExtras |
| 43 | |
| 44 | QT_END_NAMESPACE |
| 45 | |
| 46 | #endif // QT3DEXTRAS_QEXTRUDEDTEXTMESH_H |
| 47 | |