Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qsgbasicglyphnode_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// Qt-Security score:significant reason:default
4
5#ifndef QSGBASICGLYPHNODE_P_H
6#define QSGBASICGLYPHNODE_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <private/qsgadaptationlayer_p.h>
20
21QT_BEGIN_NAMESPACE
22
23class QSGMaterial;
24
25class Q_QUICK_EXPORT QSGBasicGlyphNode: public QSGGlyphNode
26{
27public:
28 QSGBasicGlyphNode();
29 virtual ~QSGBasicGlyphNode();
30
31 QPointF baseLine() const override { return m_baseLine; }
32 void setGlyphs(const QPointF &position, const QGlyphRun &glyphs) override;
33 void setColor(const QColor &color) override;
34
35 void setPreferredAntialiasingMode(AntialiasingMode) override { }
36 void setStyle(QQuickText::TextStyle) override;
37 void setStyleColor(const QColor &) override;
38
39 virtual void setMaterialColor(const QColor &color) = 0;
40 void update() override = 0;
41
42protected:
43 QGlyphRun m_glyphs;
44 QPointF m_position;
45 QColor m_color;
46 QQuickText::TextStyle m_style;
47 QColor m_styleColor;
48
49 QPointF m_baseLine;
50 QSGMaterial *m_material;
51
52 QSGGeometry m_geometry;
53};
54
55QT_END_NAMESPACE
56
57#endif