OpenCoverage

qsgdistancefieldglyphnode_p_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/qsgdistancefieldglyphnode_p_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5class __attribute__((visibility("default"))) QSGDistanceFieldTextMaterial: public QSGMaterial-
6{-
7public:-
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: return m_color;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_scenegraph
  • tst_touchmouse
m_color;
executed 77490 times by 24 tests: return m_color;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_scenegraph
  • tst_touchmouse
}
77490
17-
18 void setGlyphCache(QSGDistanceFieldGlyphCache *a) { m_glyph_cache = a; }
executed 249131 times by 24 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_scenegraph
  • tst_touchmouse
249131
19 QSGDistanceFieldGlyphCache *glyphCache() const { return
executed 34196 times by 24 tests: return m_glyph_cache;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_scenegraph
  • tst_touchmouse
m_glyph_cache;
executed 34196 times by 24 tests: return m_glyph_cache;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_scenegraph
  • tst_touchmouse
}
34196
20-
21 void setTexture(const QSGDistanceFieldGlyphCache::Texture * tex) { m_texture = tex; }
executed 240904 times by 24 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_scenegraph
  • tst_touchmouse
240904
22 const QSGDistanceFieldGlyphCache::Texture * texture() const { return
executed 35298 times by 24 tests: return m_texture;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_scenegraph
  • tst_touchmouse
m_texture;
executed 35298 times by 24 tests: return m_texture;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_scenegraph
  • tst_touchmouse
}
35298
23-
24 void setFontScale(qreal fontScale) { m_fontScale = fontScale; }
executed 249131 times by 24 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_scenegraph
  • tst_touchmouse
249131
25 qreal fontScale() const { return
executed 79124 times by 24 tests: return m_fontScale;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_scenegraph
  • tst_touchmouse
m_fontScale;
executed 79124 times by 24 tests: return m_fontScale;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_scenegraph
  • tst_touchmouse
}
79124
26-
27 QSize textureSize() const { return
executed 66180 times by 24 tests: return m_size;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_scenegraph
  • tst_touchmouse
m_size;
executed 66180 times by 24 tests: return m_size;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_scenegraph
  • tst_touchmouse
}
66180
28-
29 bool updateTextureSize();-
30-
31protected:-
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-
39class __attribute__((visibility("default"))) QSGDistanceFieldStyledTextMaterial : public QSGDistanceFieldTextMaterial-
40{-
41public:-
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: return m_styleColor;
Executed by:
  • tst_examples
m_styleColor;
executed 20 times by 1 test: return m_styleColor;
Executed by:
  • tst_examples
}
20
51-
52protected:-
53 QVector4D m_styleColor;-
54};-
55-
56class __attribute__((visibility("default"))) QSGDistanceFieldOutlineTextMaterial : public QSGDistanceFieldStyledTextMaterial-
57{-
58public:-
59 QSGDistanceFieldOutlineTextMaterial();-
60 ~QSGDistanceFieldOutlineTextMaterial();-
61-
62 QSGMaterialType *type() const override;-
63 QSGMaterialShader *createShader() const override;-
64};-
65-
66class __attribute__((visibility("default"))) QSGDistanceFieldShiftedStyleTextMaterial : public QSGDistanceFieldStyledTextMaterial-
67{-
68public:-
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:
  • tst_examples
26
77 const QPointF &shift() const { return
executed 12 times by 1 test: return m_shift;
Executed by:
  • tst_examples
m_shift;
executed 12 times by 1 test: return m_shift;
Executed by:
  • tst_examples
}
12
78-
79protected:-
80 QPointF m_shift;-
81};-
82-
83class __attribute__((visibility("default"))) QSGHiQSubPixelDistanceFieldTextMaterial : public QSGDistanceFieldTextMaterial-
84{-
85public:-
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:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_scenegraph
  • tst_touchmouse
249097
89};-
90-
91class __attribute__((visibility("default"))) QSGLoQSubPixelDistanceFieldTextMaterial : public QSGDistanceFieldTextMaterial-
92{-
93public:-
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 codePreprocessed file

Generated by Squish Coco 4.2.0