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_QSPRITEGRID_H |
5 | #define |
6 | |
7 | #include <Qt3DExtras/qabstractspritesheet.h> |
8 | #include <Qt3DCore/qcomponent.h> |
9 | #include <QtGui/QVector2D> |
10 | #include <QtGui/QMatrix3x3> |
11 | |
12 | QT_BEGIN_NAMESPACE |
13 | |
14 | namespace Qt3DExtras { |
15 | |
16 | class ; |
17 | |
18 | class Q_3DEXTRASSHARED_EXPORT : public QAbstractSpriteSheet |
19 | { |
20 | Q_OBJECT |
21 | Q_PROPERTY(int rows READ rows WRITE setRows NOTIFY rowsChanged) |
22 | Q_PROPERTY(int columns READ columns WRITE setColumns NOTIFY columnsChanged) |
23 | public: |
24 | explicit (Qt3DCore::QNode *parent = nullptr); |
25 | (); |
26 | |
27 | int () const; |
28 | int columns() const; |
29 | |
30 | public Q_SLOTS: |
31 | void (int rows); |
32 | void setColumns(int columns); |
33 | |
34 | Q_SIGNALS: |
35 | void (int rows); |
36 | void columnsChanged(int columns); |
37 | |
38 | private: |
39 | Q_DECLARE_PRIVATE(QSpriteGrid) |
40 | }; |
41 | |
42 | } // Qt3DExtras |
43 | |
44 | QT_END_NAMESPACE |
45 | |
46 | #endif // QT3DEXTRAS_QSPRITEGRID_H |
47 | |