1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | // |
5 | // W A R N I N G |
6 | // ------------- |
7 | // |
8 | // This file is not part of the QtDataVisualization API. It exists purely as an |
9 | // implementation detail. This header file may change from version to |
10 | // version without notice, or even be removed. |
11 | // |
12 | // We mean it. |
13 | |
14 | #ifndef LABELITEM_P_H |
15 | #define LABELITEM_P_H |
16 | |
17 | #include <private/datavisualizationglobal_p.h> |
18 | #include <QtCore/QSize> |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | class LabelItem |
23 | { |
24 | public: |
25 | explicit LabelItem(); |
26 | ~LabelItem(); |
27 | |
28 | void setSize(const QSize &size); |
29 | QSize size() const; |
30 | void setTextureId(GLuint textureId); |
31 | GLuint textureId() const; |
32 | void clear(); |
33 | |
34 | private: |
35 | Q_DISABLE_COPY(LabelItem) |
36 | |
37 | QSize m_size; |
38 | GLuint m_textureId; |
39 | }; |
40 | |
41 | QT_END_NAMESPACE |
42 | |
43 | #endif |
44 | |