26 void setTexture(QSGTexture *texture);
27 inline QSGTexture *texture()
const
29 void setRadius(qreal radius);
30 void setSmooth(
bool smooth);
31 void setSourceRect(
const QRectF &source);
32 void setRect(
const QRectF &target);
33 void setCompositionMode(QPainter::CompositionMode mode);
35 void render(
const RenderState *state)
override;
36 void releaseResources()
override;
37 RenderingFlags flags()
const override;
38 QRectF rect()
const override;
41 void updateCachedImage();
42 QRectF convertToTextureNormalizedSourceRect()
const;
48 QPainterPath clipPath;
49 QPainter::CompositionMode m_compositionMode = QPainter::CompositionMode_SourceOver;
51 QSGTexture *m_texture =
nullptr;
52 QQuickItem *item =
nullptr;