OpenCoverage

qsgsoftwarepublicnodes_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/adaptations/software/qsgsoftwarepublicnodes_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3class QSGSoftwareRectangleNode : public QSGRectangleNode-
4{-
5public:-
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: return m_rect;
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: return m_color;
m_color;
never executed: return m_color;
}
0
13-
14 void paint(QPainter *painter);-
15-
16private:-
17 QRectF m_rect;-
18 QColor m_color;-
19};-
20-
21class QSGSoftwareImageNode : public QSGImageNode-
22{-
23public:-
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: return m_rect;
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: return m_sourceRect;
m_sourceRect;
never executed: return m_sourceRect;
}
0
32-
33 void setTexture(QSGTexture *texture) override;-
34 QSGTexture *texture() const override { return
never executed: return m_texture;
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: return m_filtering;
m_filtering;
never executed: return m_filtering;
}
0
38-
39 void setMipmapFiltering(QSGTexture::Filtering) override { }-
40 QSGTexture::Filtering mipmapFiltering() const override { return
never executed: return QSGTexture::None;
QSGTexture::None;
never executed: return QSGTexture::None;
}
0
41-
42 void setTextureCoordinatesTransform(TextureCoordinatesTransformMode transformNode) override;-
43 TextureCoordinatesTransformMode textureCoordinatesTransform() const override { return
never executed: return m_transformMode;
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: return m_owns;
m_owns;
never executed: return m_owns;
}
0
47-
48 void paint(QPainter *painter);-
49-
50private:-
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-
63class QSGSoftwareNinePatchNode : public QSGNinePatchNode-
64{-
65public:-
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: return !m_pixmap.hasAlphaChannel();
!m_pixmap.hasAlphaChannel();
never executed: return !m_pixmap.hasAlphaChannel();
}
0
79-
80private:-
81 QPixmap m_pixmap;-
82 QRectF m_bounds;-
83 qreal m_pixelRatio;-
84 QMargins m_margins;-
85};-
86-
87-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0