Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/adaptations/software/qsgsoftwarepublicnodes_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | class QSGSoftwareRectangleNode : public QSGRectangleNode | - |
4 | { | - |
5 | public: | - |
6 | QSGSoftwareRectangleNode(); | - |
7 | - | |
8 | void setRect(const QRectF &rect) override { m_rect = rect; markDirty(DirtyMaterial); } never executed: end of block | 0 |
9 | QRectF rect() const override { return never executed: m_rect;return m_rect; never executed: }return m_rect; | 0 |
10 | - | |
11 | void setColor(const QColor &color) override { m_color = color; markDirty(DirtyMaterial); } never executed: end of block | 0 |
12 | QColor color() const override { return never executed: m_color;return m_color; never executed: }return m_color; | 0 |
13 | - | |
14 | void paint(QPainter *painter); | - |
15 | - | |
16 | private: | - |
17 | QRectF m_rect; | - |
18 | QColor m_color; | - |
19 | }; | - |
20 | - | |
21 | class QSGSoftwareImageNode : public QSGImageNode | - |
22 | { | - |
23 | public: | - |
24 | QSGSoftwareImageNode(); | - |
25 | ~QSGSoftwareImageNode(); | - |
26 | - | |
27 | void setRect(const QRectF &rect) override { m_rect = rect; markDirty(DirtyMaterial); } never executed: end of block | 0 |
28 | QRectF rect() const override { return never executed: m_rect;return m_rect; never executed: }return m_rect; | 0 |
29 | - | |
30 | void setSourceRect(const QRectF &r) override { m_sourceRect = r; } never executed: end of block | 0 |
31 | QRectF sourceRect() const override { return never executed: m_sourceRect;return m_sourceRect; never executed: }return m_sourceRect; | 0 |
32 | - | |
33 | void setTexture(QSGTexture *texture) override; | - |
34 | QSGTexture *texture() const override { return never executed: m_texture;return m_texture; never executed: }return m_texture; | 0 |
35 | - | |
36 | void setFiltering(QSGTexture::Filtering filtering) override { m_filtering = filtering; markDirty(DirtyMaterial); } never executed: end of block | 0 |
37 | QSGTexture::Filtering filtering() const override { return never executed: m_filtering;return m_filtering; never executed: }return m_filtering; | 0 |
38 | - | |
39 | void setMipmapFiltering(QSGTexture::Filtering) override { } | - |
40 | QSGTexture::Filtering mipmapFiltering() const override { return never executed: QSGTexture::None;return QSGTexture::None; never executed: }return QSGTexture::None; | 0 |
41 | - | |
42 | void setTextureCoordinatesTransform(TextureCoordinatesTransformMode transformNode) override; | - |
43 | TextureCoordinatesTransformMode textureCoordinatesTransform() const override { return never executed: m_transformMode;return m_transformMode; never executed: }return m_transformMode; | 0 |
44 | - | |
45 | void setOwnsTexture(bool owns) override { m_owns = owns; } never executed: end of block | 0 |
46 | bool ownsTexture() const override { return never executed: m_owns;return m_owns; never executed: }return m_owns; | 0 |
47 | - | |
48 | void paint(QPainter *painter); | - |
49 | - | |
50 | private: | - |
51 | void updateCachedMirroredPixmap(); | - |
52 | - | |
53 | QPixmap m_cachedPixmap; | - |
54 | QSGTexture *m_texture; | - |
55 | QRectF m_rect; | - |
56 | QRectF m_sourceRect; | - |
57 | bool m_owns; | - |
58 | QSGTexture::Filtering m_filtering; | - |
59 | TextureCoordinatesTransformMode m_transformMode; | - |
60 | bool m_cachedMirroredPixmapIsDirty; | - |
61 | }; | - |
62 | - | |
63 | class QSGSoftwareNinePatchNode : public QSGNinePatchNode | - |
64 | { | - |
65 | public: | - |
66 | QSGSoftwareNinePatchNode(); | - |
67 | - | |
68 | void setTexture(QSGTexture *texture) override; | - |
69 | void setBounds(const QRectF &bounds) override; | - |
70 | void setDevicePixelRatio(qreal ratio) override; | - |
71 | void setPadding(qreal left, qreal top, qreal right, qreal bottom) override; | - |
72 | void update() override; | - |
73 | - | |
74 | void paint(QPainter *painter); | - |
75 | - | |
76 | QRectF bounds() const; | - |
77 | - | |
78 | bool isOpaque() const { return never executed: !m_pixmap.hasAlphaChannel();return !m_pixmap.hasAlphaChannel(); never executed: }return !m_pixmap.hasAlphaChannel(); | 0 |
79 | - | |
80 | private: | - |
81 | QPixmap m_pixmap; | - |
82 | QRectF m_bounds; | - |
83 | qreal m_pixelRatio; | - |
84 | QMargins m_margins; | - |
85 | }; | - |
86 | - | |
87 | - | |
Switch to Source code | Preprocessed file |