| 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_QSPRITESHEETITEM_H |
| 5 | #define |
| 6 | |
| 7 | #include <Qt3DExtras/qabstractspritesheet.h> |
| 8 | |
| 9 | QT_BEGIN_NAMESPACE |
| 10 | |
| 11 | namespace Qt3DExtras { |
| 12 | |
| 13 | class ; |
| 14 | |
| 15 | class Q_3DEXTRASSHARED_EXPORT : public Qt3DCore::QNode |
| 16 | { |
| 17 | Q_OBJECT |
| 18 | Q_PROPERTY(int x READ x WRITE setX NOTIFY xChanged) |
| 19 | Q_PROPERTY(int y READ y WRITE setY NOTIFY yChanged) |
| 20 | Q_PROPERTY(int width READ width WRITE setWidth NOTIFY widthChanged) |
| 21 | Q_PROPERTY(int height READ height WRITE setHeight NOTIFY heightChanged) |
| 22 | public: |
| 23 | explicit (Qt3DCore::QNode *parent = nullptr); |
| 24 | |
| 25 | int () const; |
| 26 | int () const; |
| 27 | int () const; |
| 28 | int () const; |
| 29 | |
| 30 | public Q_SLOTS: |
| 31 | void (int x); |
| 32 | void (int y); |
| 33 | void (int width); |
| 34 | void (int height); |
| 35 | |
| 36 | Q_SIGNALS: |
| 37 | void (int x); |
| 38 | void (int y); |
| 39 | void (int width); |
| 40 | void (int height); |
| 41 | |
| 42 | private: |
| 43 | Q_DECLARE_PRIVATE(QSpriteSheetItem) |
| 44 | }; |
| 45 | |
| 46 | } // Qt3DExtras |
| 47 | |
| 48 | QT_END_NAMESPACE |
| 49 | |
| 50 | #endif // QT3DEXTRAS_QSPRITESHEETITEM_H |
| 51 | |