OpenCoverage

qsgdefaultglyphnode_p_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/qsgdefaultglyphnode_p_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4class QFontEngine;-
5class Geometry;-
6class QSGTextMaskMaterial: public QSGMaterial-
7{-
8public:-
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:
  • tst_scenegraph
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: return m_color;
Executed by:
  • tst_scenegraph
m_color;
executed 216 times by 1 test: return m_color;
Executed by:
  • tst_scenegraph
}
216
19-
20 QSGTexture *texture() const { return
executed 432 times by 1 test: return m_texture;
Executed by:
  • tst_scenegraph
m_texture;
executed 432 times by 1 test: return m_texture;
Executed by:
  • tst_scenegraph
}
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-
33private:-
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-
43class QSGStyledTextMaterial : public QSGTextMaskMaterial-
44{-
45public:-
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: return m_styleShift;
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: return m_styleColor;
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-
61private:-
62 QVector2D m_styleShift;-
63 QVector4D m_styleColor;-
64};-
65-
66class QSGOutlinedTextMaterial : public QSGStyledTextMaterial-
67{-
68public:-
69 QSGOutlinedTextMaterial(const QRawFont &font);-
70 ~QSGOutlinedTextMaterial() { }-
71-
72 QSGMaterialType *type() const override;-
73 QSGMaterialShader *createShader() const override;-
74};-
75-
76-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0