OpenCoverage

qsgsimpletexturenode.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/util/qsgsimpletexturenode.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4class QSGSimpleTextureNodePrivate;-
5-
6class __attribute__((visibility("default"))) QSGSimpleTextureNode : public QSGGeometryNode-
7{-
8public:-
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:
  • tst_nodestest
  • tst_qquickframebufferobject
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:
  • tst_nodestest
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-
39private:-
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: return reinterpret_cast<QSGSimpleTextureNodePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_nodestest
  • tst_qquickframebufferobject
reinterpret_cast<QSGSimpleTextureNodePrivate *>(qGetPtrHelper(d_ptr));
executed 98 times by 2 tests: return reinterpret_cast<QSGSimpleTextureNodePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_nodestest
  • tst_qquickframebufferobject
} inline const QSGSimpleTextureNodePrivate* d_func() const { return
executed 6 times by 1 test: return reinterpret_cast<const QSGSimpleTextureNodePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_nodestest
reinterpret_cast<const QSGSimpleTextureNodePrivate *>(qGetPtrHelper(d_ptr));
executed 6 times by 1 test: return reinterpret_cast<const QSGSimpleTextureNodePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_nodestest
} friend class QSGSimpleTextureNodePrivate;
6-98
47};-
48-
49constexpr 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 codePreprocessed file

Generated by Squish Coco 4.2.0