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
qsgbasicglyphnode.cpp
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
5#include <qsgmaterial.h> // just so that we can safely do delete m_material in the dtor
6
8
10 : m_style(QQuickText::Normal)
11 , m_material(nullptr)
12 , m_geometry(QSGGeometry::defaultAttributes_TexturedPoint2D(), 0)
13{
16}
17
22
24{
25 m_color = color;
26 if (m_material != nullptr) {
29 }
30}
31
33{
34 if (m_material != nullptr)
35 delete m_material;
36
38 m_glyphs = glyphs;
39
40#ifdef QSG_RUNTIME_DESCRIPTION
42#endif
43}
44
46{
47 if (m_style == style)
48 return;
49 m_style = style;
50}
51
53{
54 if (m_styleColor == color)
55 return;
57}
58
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
void setGeometry(QSGGeometry *geometry)
Sets the geometry of this node to geometry.
Definition qsgnode.cpp:764
void setGlyphs(const QPointF &position, const QGlyphRun &glyphs) override
void setColor(const QColor &color) override
void setStyle(QQuickText::TextStyle) override
QQuickText::TextStyle m_style
void setStyleColor(const QColor &) override
virtual void setMaterialColor(const QColor &color)=0
The QSGGeometry class provides low-level storage for graphics primitives in the \l{Qt Quick Scene Gra...
Definition qsggeometry.h:15
void setDrawingMode(unsigned int mode)
Sets the mode to be used for drawing this geometry.
@ DirtyMaterial
Definition qsgnode.h:75
void markDirty(DirtyState bits)
Notifies all connected renderers that the node has dirty bits.
Definition qsgnode.cpp:624
Combined button and popup list for selecting options.
GLuint color
[2]
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
void qsgnode_set_description(QSGNode *node, const QString &description)
Definition qsgnode.cpp:641
QLatin1StringView QLatin1String
Definition qstringfwd.h:31
QObject::connect nullptr