Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/qsgdistancefieldglyphnode_p_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | class __attribute__((visibility("default"))) QSGDistanceFieldTextMaterial: public QSGMaterial | - |
6 | { | - |
7 | public: | - |
8 | QSGDistanceFieldTextMaterial(); | - |
9 | ~QSGDistanceFieldTextMaterial(); | - |
10 | - | |
11 | QSGMaterialType *type() const override; | - |
12 | QSGMaterialShader *createShader() const override; | - |
13 | int compare(const QSGMaterial *other) const override; | - |
14 | - | |
15 | virtual void setColor(const QColor &color); | - |
16 | const QVector4D &color() const { return executed 77490 times by 24 tests: m_color;return m_color; Executed by:
executed 77490 times by 24 tests: }return m_color; Executed by:
| 77490 |
17 | - | |
18 | void setGlyphCache(QSGDistanceFieldGlyphCache *a) { m_glyph_cache = a; } executed 249131 times by 24 tests: end of block Executed by:
| 249131 |
19 | QSGDistanceFieldGlyphCache *glyphCache() const { return executed 34196 times by 24 tests: m_glyph_cache;return m_glyph_cache; Executed by:
executed 34196 times by 24 tests: }return m_glyph_cache; Executed by:
| 34196 |
20 | - | |
21 | void setTexture(const QSGDistanceFieldGlyphCache::Texture * tex) { m_texture = tex; } executed 240904 times by 24 tests: end of block Executed by:
| 240904 |
22 | const QSGDistanceFieldGlyphCache::Texture * texture() const { return executed 35298 times by 24 tests: m_texture;return m_texture; Executed by:
executed 35298 times by 24 tests: }return m_texture; Executed by:
| 35298 |
23 | - | |
24 | void setFontScale(qreal fontScale) { m_fontScale = fontScale; } executed 249131 times by 24 tests: end of block Executed by:
| 249131 |
25 | qreal fontScale() const { return executed 79124 times by 24 tests: m_fontScale;return m_fontScale; Executed by:
executed 79124 times by 24 tests: }return m_fontScale; Executed by:
| 79124 |
26 | - | |
27 | QSize textureSize() const { return executed 66180 times by 24 tests: m_size;return m_size; Executed by:
executed 66180 times by 24 tests: }return m_size; Executed by:
| 66180 |
28 | - | |
29 | bool updateTextureSize(); | - |
30 | - | |
31 | protected: | - |
32 | QSize m_size; | - |
33 | QVector4D m_color; | - |
34 | QSGDistanceFieldGlyphCache *m_glyph_cache; | - |
35 | const QSGDistanceFieldGlyphCache::Texture *m_texture; | - |
36 | qreal m_fontScale; | - |
37 | }; | - |
38 | - | |
39 | class __attribute__((visibility("default"))) QSGDistanceFieldStyledTextMaterial : public QSGDistanceFieldTextMaterial | - |
40 | { | - |
41 | public: | - |
42 | QSGDistanceFieldStyledTextMaterial(); | - |
43 | ~QSGDistanceFieldStyledTextMaterial(); | - |
44 | - | |
45 | QSGMaterialType *type() const override = 0; | - |
46 | QSGMaterialShader *createShader() const override = 0; | - |
47 | int compare(const QSGMaterial *other) const override; | - |
48 | - | |
49 | void setStyleColor(const QColor &color); | - |
50 | const QVector4D &styleColor() const { return executed 20 times by 1 test: m_styleColor;return m_styleColor; Executed by:
executed 20 times by 1 test: }return m_styleColor; Executed by:
| 20 |
51 | - | |
52 | protected: | - |
53 | QVector4D m_styleColor; | - |
54 | }; | - |
55 | - | |
56 | class __attribute__((visibility("default"))) QSGDistanceFieldOutlineTextMaterial : public QSGDistanceFieldStyledTextMaterial | - |
57 | { | - |
58 | public: | - |
59 | QSGDistanceFieldOutlineTextMaterial(); | - |
60 | ~QSGDistanceFieldOutlineTextMaterial(); | - |
61 | - | |
62 | QSGMaterialType *type() const override; | - |
63 | QSGMaterialShader *createShader() const override; | - |
64 | }; | - |
65 | - | |
66 | class __attribute__((visibility("default"))) QSGDistanceFieldShiftedStyleTextMaterial : public QSGDistanceFieldStyledTextMaterial | - |
67 | { | - |
68 | public: | - |
69 | QSGDistanceFieldShiftedStyleTextMaterial(); | - |
70 | ~QSGDistanceFieldShiftedStyleTextMaterial(); | - |
71 | - | |
72 | QSGMaterialType *type() const override; | - |
73 | QSGMaterialShader *createShader() const override; | - |
74 | int compare(const QSGMaterial *other) const override; | - |
75 | - | |
76 | void setShift(const QPointF &shift) { m_shift = shift; } executed 26 times by 1 test: end of block Executed by:
| 26 |
77 | const QPointF &shift() const { return executed 12 times by 1 test: m_shift;return m_shift; Executed by:
executed 12 times by 1 test: }return m_shift; Executed by:
| 12 |
78 | - | |
79 | protected: | - |
80 | QPointF m_shift; | - |
81 | }; | - |
82 | - | |
83 | class __attribute__((visibility("default"))) QSGHiQSubPixelDistanceFieldTextMaterial : public QSGDistanceFieldTextMaterial | - |
84 | { | - |
85 | public: | - |
86 | QSGMaterialType *type() const override; | - |
87 | QSGMaterialShader *createShader() const override; | - |
88 | void setColor(const QColor &color) override { m_color = QVector4D(color.redF(), color.greenF(), color.blueF(), color.alphaF()); } executed 249097 times by 24 tests: end of block Executed by:
| 249097 |
89 | }; | - |
90 | - | |
91 | class __attribute__((visibility("default"))) QSGLoQSubPixelDistanceFieldTextMaterial : public QSGDistanceFieldTextMaterial | - |
92 | { | - |
93 | public: | - |
94 | QSGMaterialType *type() const override; | - |
95 | QSGMaterialShader *createShader() const override; | - |
96 | void setColor(const QColor &color) override { m_color = QVector4D(color.redF(), color.greenF(), color.blueF(), color.alphaF()); } never executed: end of block | 0 |
97 | }; | - |
98 | - | |
99 | - | |
Switch to Source code | Preprocessed file |