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
4#ifndef QSGSOFTWAREGLYPHNODE_H
5#define QSGSOFTWAREGLYPHNODE_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <private/qsgadaptationlayer_p.h>
19
20QT_BEGIN_NAMESPACE
21
22class QSGSoftwareGlyphNode : public QSGGlyphNode
23{
24public:
25 QSGSoftwareGlyphNode();
26
27 void setGlyphs(const QPointF &position, const QGlyphRun &glyphs) override;
28 void setColor(const QColor &color) override;
29 void setStyle(QQuickText::TextStyle style) override;
30 void setStyleColor(const QColor &color) override;
31 QPointF baseLine() const override;
32 void setPreferredAntialiasingMode(AntialiasingMode) override;
33 void update() override;
34
35 void paint(QPainter *painter);
36
37private:
38 QPointF m_position;
39 QGlyphRun m_glyphRun;
40 QColor m_color;
41 QSGGeometry m_geometry;
42 QQuickText::TextStyle m_style;
43 QColor m_styleColor;
44};
45
46QT_END_NAMESPACE
47
48#endif // QSGSOFTWAREGLYPHNODE_H
49

source code of qtdeclarative/src/quick/scenegraph/adaptations/software/qsgsoftwareglyphnode_p.h