Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qsgsoftwareglyphnode_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
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
21
23{
24public:
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;
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;
43 QColor m_styleColor;
44};
45
47
48#endif // QSGSOFTWAREGLYPHNODE_H
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
The QGlyphRun class provides direct access to the internal glyphs in a font.
Definition qglyphrun.h:20
The QPainter class performs low-level painting on widgets and other paint devices.
Definition qpainter.h:46
\inmodule QtCore\reentrant
Definition qpoint.h:217
The QSGGeometry class provides low-level storage for graphics primitives in the \l{Qt Quick Scene Gra...
Definition qsggeometry.h:15
void setStyleColor(const QColor &color) override
void setColor(const QColor &color) override
void setGlyphs(const QPointF &position, const QGlyphRun &glyphs) override
void setStyle(QQuickText::TextStyle style) override
void setPreferredAntialiasingMode(AntialiasingMode) override
QPointF baseLine() const override
QPainter paint
Combined button and popup list for selecting options.
GLuint color
[2]
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
QPainter painter(this)
[7]