Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/util/qsgsimpletexturenode.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | class QSGSimpleTextureNodePrivate; | - |
5 | - | |
6 | class __attribute__((visibility("default"))) QSGSimpleTextureNode : public QSGGeometryNode | - |
7 | { | - |
8 | public: | - |
9 | QSGSimpleTextureNode(); | - |
10 | ~QSGSimpleTextureNode() override; | - |
11 | - | |
12 | void setRect(const QRectF &rect); | - |
13 | inline void setRect(qreal x, qreal y, qreal w, qreal h) { setRect(QRectF(x, y, w, h)); } executed 24 times by 2 tests: end of block Executed by:
| 24 |
14 | QRectF rect() const; | - |
15 | - | |
16 | void setSourceRect(const QRectF &r); | - |
17 | inline void setSourceRect(qreal x, qreal y, qreal w, qreal h) { setSourceRect(QRectF(x, y, w, h)); } executed 4 times by 1 test: end of block Executed by:
| 4 |
18 | QRectF sourceRect() const; | - |
19 | - | |
20 | void setTexture(QSGTexture *texture); | - |
21 | QSGTexture *texture() const; | - |
22 | - | |
23 | void setFiltering(QSGTexture::Filtering filtering); | - |
24 | QSGTexture::Filtering filtering() const; | - |
25 | - | |
26 | enum TextureCoordinatesTransformFlag { | - |
27 | NoTransform = 0x00, | - |
28 | MirrorHorizontally = 0x01, | - |
29 | MirrorVertically = 0x02 | - |
30 | }; | - |
31 | typedef QFlags<TextureCoordinatesTransformFlag> TextureCoordinatesTransformMode; | - |
32 | - | |
33 | void setTextureCoordinatesTransform(TextureCoordinatesTransformMode mode); | - |
34 | TextureCoordinatesTransformMode textureCoordinatesTransform() const; | - |
35 | - | |
36 | void setOwnsTexture(bool owns); | - |
37 | bool ownsTexture() const; | - |
38 | - | |
39 | private: | - |
40 | QSGGeometry m_geometry; | - |
41 | QSGOpaqueTextureMaterial m_opaque_material; | - |
42 | QSGTextureMaterial m_material; | - |
43 | - | |
44 | QRectF m_rect; | - |
45 | - | |
46 | inline QSGSimpleTextureNodePrivate* d_func() { return executed 98 times by 2 tests: reinterpret_cast<QSGSimpleTextureNodePrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QSGSimpleTextureNodePrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 98 times by 2 tests: } inline const QSGSimpleTextureNodePrivate* d_func() const { returnreturn reinterpret_cast<QSGSimpleTextureNodePrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 6 times by 1 test: reinterpret_cast<const QSGSimpleTextureNodePrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QSGSimpleTextureNodePrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 6 times by 1 test: } friend class QSGSimpleTextureNodePrivate;return reinterpret_cast<const QSGSimpleTextureNodePrivate *>(qGetPtrHelper(d_ptr)); Executed by:
| 6-98 |
47 | }; | - |
48 | - | |
49 | constexpr inline QFlags<QSGSimpleTextureNode::TextureCoordinatesTransformMode::enum_type> operator|(QSGSimpleTextureNode::TextureCoordinatesTransformMode::enum_type f1, QSGSimpleTextureNode::TextureCoordinatesTransformMode::enum_type f2) noexcept { return QFlags<QSGSimpleTextureNode::TextureCoordinatesTransformMode::enum_type>(f1) | f2; } constexpr inline QFlags<QSGSimpleTextureNode::TextureCoordinatesTransformMode::enum_type> operator|(QSGSimpleTextureNode::TextureCoordinatesTransformMode::enum_type f1, QFlags<QSGSimpleTextureNode::TextureCoordinatesTransformMode::enum_type> f2) noexcept { return f2 | f1; } constexpr inline QIncompatibleFlag operator|(QSGSimpleTextureNode::TextureCoordinatesTransformMode::enum_type f1, int f2) noexcept { return QIncompatibleFlag(int(f1) | f2); } | - |
50 | - | |
51 | - | |
Switch to Source code | Preprocessed file |