Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/qsgdefaultglyphnode_p_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | class QFontEngine; | - |
5 | class Geometry; | - |
6 | class QSGTextMaskMaterial: public QSGMaterial | - |
7 | { | - |
8 | public: | - |
9 | QSGTextMaskMaterial(const QRawFont &font, QFontEngine::GlyphFormat glyphFormat = QFontEngine::Format_None); | - |
10 | virtual ~QSGTextMaskMaterial(); | - |
11 | - | |
12 | QSGMaterialType *type() const override; | - |
13 | QSGMaterialShader *createShader() const override; | - |
14 | int compare(const QSGMaterial *other) const override; | - |
15 | - | |
16 | void setColor(const QColor &c) { m_color = QVector4D(c.redF(), c.greenF(), c.blueF(), c.alphaF()); } executed 72 times by 1 test: end of block Executed by:
| 72 |
17 | void setColor(const QVector4D &color) { m_color = color; } never executed: end of block | 0 |
18 | const QVector4D &color() const { return executed 216 times by 1 test: m_color;return m_color; Executed by:
executed 216 times by 1 test: }return m_color; Executed by:
| 216 |
19 | - | |
20 | QSGTexture *texture() const { return executed 432 times by 1 test: m_texture;return m_texture; Executed by:
executed 432 times by 1 test: }return m_texture; Executed by:
| 432 |
21 | - | |
22 | int cacheTextureWidth() const; | - |
23 | int cacheTextureHeight() const; | - |
24 | - | |
25 | bool ensureUpToDate(); | - |
26 | - | |
27 | QOpenGLTextureGlyphCache *glyphCache() const; | - |
28 | void populate(const QPointF &position, | - |
29 | const QVector<quint32> &glyphIndexes, const QVector<QPointF> &glyphPositions, | - |
30 | QSGGeometry *geometry, QRectF *boundingRect, QPointF *baseLine, | - |
31 | const QMargins &margins = QMargins(0, 0, 0, 0)); | - |
32 | - | |
33 | private: | - |
34 | void init(QFontEngine::GlyphFormat glyphFormat); | - |
35 | - | |
36 | QSGPlainTexture *m_texture; | - |
37 | QExplicitlySharedDataPointer<QFontEngineGlyphCache> m_glyphCache; | - |
38 | QRawFont m_font; | - |
39 | QVector4D m_color; | - |
40 | QSize m_size; | - |
41 | }; | - |
42 | - | |
43 | class QSGStyledTextMaterial : public QSGTextMaskMaterial | - |
44 | { | - |
45 | public: | - |
46 | QSGStyledTextMaterial(const QRawFont &font); | - |
47 | virtual ~QSGStyledTextMaterial() { } | - |
48 | - | |
49 | void setStyleShift(const QVector2D &shift) { m_styleShift = shift; } never executed: end of block | 0 |
50 | const QVector2D &styleShift() const { return never executed: m_styleShift;return m_styleShift; never executed: }return m_styleShift; | 0 |
51 | - | |
52 | void setStyleColor(const QColor &c) { m_styleColor = QVector4D(c.redF(), c.greenF(), c.blueF(), c.alphaF()); } never executed: end of block | 0 |
53 | void setStyleColor(const QVector4D &color) { m_styleColor = color; } never executed: end of block | 0 |
54 | const QVector4D &styleColor() const { return never executed: m_styleColor;return m_styleColor; never executed: }return m_styleColor; | 0 |
55 | - | |
56 | QSGMaterialType *type() const override; | - |
57 | QSGMaterialShader *createShader() const override; | - |
58 | - | |
59 | int compare(const QSGMaterial *other) const override; | - |
60 | - | |
61 | private: | - |
62 | QVector2D m_styleShift; | - |
63 | QVector4D m_styleColor; | - |
64 | }; | - |
65 | - | |
66 | class QSGOutlinedTextMaterial : public QSGStyledTextMaterial | - |
67 | { | - |
68 | public: | - |
69 | QSGOutlinedTextMaterial(const QRawFont &font); | - |
70 | ~QSGOutlinedTextMaterial() { } | - |
71 | - | |
72 | QSGMaterialType *type() const override; | - |
73 | QSGMaterialShader *createShader() const override; | - |
74 | }; | - |
75 | - | |
76 | - | |
Switch to Source code | Preprocessed file |