| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | class __attribute__((visibility("default"))) QSGImageNode : public QSGGeometryNode | - |
| 5 | { | - |
| 6 | public: | - |
| 7 | ~QSGImageNode() override { } | - |
| 8 | | - |
| 9 | virtual void setRect(const QRectF &rect) = 0; | - |
| 10 | inline void setRect(qreal x, qreal y, qreal w, qreal h) { setRect(QRectF(x, y, w, h)); } never executed: end of block | 0 |
| 11 | virtual QRectF rect() const = 0; | - |
| 12 | | - |
| 13 | virtual void setSourceRect(const QRectF &r) = 0; | - |
| 14 | inline void setSourceRect(qreal x, qreal y, qreal w, qreal h) { setSourceRect(QRectF(x, y, w, h)); } never executed: end of block | 0 |
| 15 | virtual QRectF sourceRect() const = 0; | - |
| 16 | | - |
| 17 | virtual void setTexture(QSGTexture *texture) = 0; | - |
| 18 | virtual QSGTexture *texture() const = 0; | - |
| 19 | | - |
| 20 | virtual void setFiltering(QSGTexture::Filtering filtering) = 0; | - |
| 21 | virtual QSGTexture::Filtering filtering() const = 0; | - |
| 22 | | - |
| 23 | virtual void setMipmapFiltering(QSGTexture::Filtering filtering) = 0; | - |
| 24 | virtual QSGTexture::Filtering mipmapFiltering() const = 0; | - |
| 25 | | - |
| 26 | | - |
| 27 | | - |
| 28 | enum TextureCoordinatesTransformFlag { | - |
| 29 | NoTransform = 0x00, | - |
| 30 | MirrorHorizontally = 0x01, | - |
| 31 | MirrorVertically = 0x02 | - |
| 32 | }; | - |
| 33 | typedef QFlags<TextureCoordinatesTransformFlag> TextureCoordinatesTransformMode; | - |
| 34 | | - |
| 35 | virtual void setTextureCoordinatesTransform(TextureCoordinatesTransformMode mode) = 0; | - |
| 36 | virtual TextureCoordinatesTransformMode textureCoordinatesTransform() const = 0; | - |
| 37 | | - |
| 38 | virtual void setOwnsTexture(bool owns) = 0; | - |
| 39 | virtual bool ownsTexture() const = 0; | - |
| 40 | | - |
| 41 | static void rebuildGeometry(QSGGeometry *g, | - |
| 42 | QSGTexture *texture, | - |
| 43 | const QRectF &rect, | - |
| 44 | QRectF sourceRect, | - |
| 45 | TextureCoordinatesTransformMode texCoordMode); | - |
| 46 | }; | - |
| 47 | | - |
| 48 | constexpr inline QFlags<QSGImageNode::TextureCoordinatesTransformMode::enum_type> operator|(QSGImageNode::TextureCoordinatesTransformMode::enum_type f1, QSGImageNode::TextureCoordinatesTransformMode::enum_type f2) noexcept { return QFlags<QSGImageNode::TextureCoordinatesTransformMode::enum_type>(f1) | f2; } constexpr inline QFlags<QSGImageNode::TextureCoordinatesTransformMode::enum_type> operator|(QSGImageNode::TextureCoordinatesTransformMode::enum_type f1, QFlags<QSGImageNode::TextureCoordinatesTransformMode::enum_type> f2) noexcept { return f2 | f1; } constexpr inline QIncompatibleFlag operator|(QSGImageNode::TextureCoordinatesTransformMode::enum_type f1, int f2) noexcept { return QIncompatibleFlag(int(f1) | f2); } | - |
| 49 | | - |
| 50 | | - |
| | |