29 Q_PROPERTY(QQuickScaleGrid *border READ border CONSTANT)
30 Q_PROPERTY(TileMode horizontalTileMode READ horizontalTileMode WRITE setHorizontalTileMode NOTIFY horizontalTileModeChanged)
31 Q_PROPERTY(TileMode verticalTileMode READ verticalTileMode WRITE setVerticalTileMode NOTIFY verticalTileModeChanged)
33 Q_PROPERTY(QSize sourceSize READ sourceSize NOTIFY sourceSizeChanged)
34 QML_NAMED_ELEMENT(BorderImage)
35 QML_ADDED_IN_VERSION(2, 0)
38 QQuickBorderImage(QQuickItem *parent=
nullptr);
41 QQuickScaleGrid *border();
43 enum TileMode { Stretch = Qt::StretchTile, Repeat = Qt::RepeatTile, Round = Qt::RoundTile };
46 TileMode horizontalTileMode()
const;
47 void setHorizontalTileMode(TileMode);
49 TileMode verticalTileMode()
const;
50 void setVerticalTileMode(TileMode);
52 void setSource(
const QUrl &url) override;
55 void horizontalTileModeChanged();
56 void verticalTileModeChanged();
57 void sourceSizeChanged();
61 void pixmapChange() override;
62 QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *) override;
65 void setGridScaledImage(
const QQuickGridScaledImage& sci);
69 void requestFinished() override;
70#if QT_CONFIG(qml_network)
71 void sciRequestFinished();
75 Q_DISABLE_COPY(QQuickBorderImage)
76 Q_DECLARE_PRIVATE(QQuickBorderImage)