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
qsgdefaultglyphnode_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 QSGDEFAULTGLYPHNODE_P_H
6#define QSGDEFAULTGLYPHNODE_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#include <private/qsgbasicglyphnode_p.h>
21
22QT_BEGIN_NAMESPACE
23
24class QSGDefaultGlyphNode : public QSGBasicGlyphNode
25{
26public:
27 QSGDefaultGlyphNode(QSGRenderContext *context);
28 ~QSGDefaultGlyphNode();
29 void setMaterialColor(const QColor &color) override;
30 void setGlyphs(const QPointF &position, const QGlyphRun &glyphs) override;
31 void update() override;
32 void preprocess() override;
33 void setPreferredAntialiasingMode(AntialiasingMode) override;
34 void updateGeometry();
35
36private:
37 enum DefaultGlyphNodeType {
38 RootGlyphNode,
39 SubGlyphNode
40 };
41
42 void setGlyphNodeType(DefaultGlyphNodeType type) { m_glyphNodeType = type; }
43
44 QSGRenderContext *m_context;
45 DefaultGlyphNodeType m_glyphNodeType;
46 QList<QSGNode *> m_nodesToDelete;
47
48 struct GlyphInfo {
49 QList<quint32> indexes;
50 QList<QPointF> positions;
51 };
52
53 uint m_dirtyGeometry: 1;
54
55 AntialiasingMode m_preferredAntialiasingMode;
56};
57
58QT_END_NAMESPACE
59
60#endif
\inmodule QtCore
Definition qmargins.h:27
constexpr void setTop(int top) noexcept
Sets the Top margin to Top.
Definition qmargins.h:148
constexpr void setBottom(int bottom) noexcept
Sets the bottom margin to bottom.
Definition qmargins.h:154
constexpr QMargins(int left, int top, int right, int bottom) noexcept
Constructs margins with the given left, top, right, and bottom.
Definition qmargins.h:126
The QRawFont class provides access to a single physical instance of a font.
Definition qrawfont.h:24
\inmodule QtQuick
void setStyleColor(const QColor &c)
void setColor(const QColor &c)
Combined button and popup list for selecting options.