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
qsgopenvgglyphnode_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 QSGOPENVGGLYPHNODE_H
5#define QSGOPENVGGLYPHNODE_H
6
7#include <private/qsgadaptationlayer_p.h>
8#include <QtCore/QVector>
9
10#include <VG/openvg.h>
11
12#include "qsgopenvgrenderable.h"
14
16
20
22{
23public:
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 render() override;
36 void setOpacity(float opacity) override;
37
38private:
39 void drawGlyphsAtOffset(const QPointF &offset);
40
41 QPointF m_position;
42 QGlyphRun m_glyphRun;
43 QColor m_color;
44 QSGGeometry m_geometry;
46 QColor m_styleColor;
47
48 QSGOpenVGFontGlyphCache *m_glyphCache;
49 QVector<VGfloat> m_xAdjustments;
50 QVector<VGfloat> m_yAdjustments;
51 VGPaint m_fontColorPaint;
52 VGPaint m_styleColorPaint;
53
54 QSGOpenVGRenderContext *m_renderContext;
55};
56
58
59#endif // QSGOPENVGGLYPHNODE_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
\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 setColor(const QColor &color) override
void setStyle(QQuickText::TextStyle style) override
QSGOpenVGGlyphNode(QSGRenderContext *rc)
void setStyleColor(const QColor &color) override
void setPreferredAntialiasingMode(AntialiasingMode) override
QPointF baseLine() const override
void setOpacity(float opacity) override
void setGlyphs(const QPointF &position, const QGlyphRun &glyphs) override
Combined button and popup list for selecting options.
GLuint color
[2]
GLenum GLuint GLintptr offset
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)