35 Q_PROPERTY(QVector2D offset READ offset WRITE setOffset NOTIFY offsetChanged FINAL)
36 Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged FINAL)
37 Q_PROPERTY(qreal blur READ blur WRITE setBlur NOTIFY blurChanged FINAL)
38 Q_PROPERTY(qreal radius READ radius WRITE setRadius NOTIFY radiusChanged FINAL)
39 Q_PROPERTY(qreal topLeftRadius READ topLeftRadius WRITE setTopLeftRadius NOTIFY topLeftRadiusChanged RESET resetTopLeftRadius REVISION(6, 11))
40 Q_PROPERTY(qreal topRightRadius READ topRightRadius WRITE setTopRightRadius NOTIFY topRightRadiusChanged RESET resetTopRightRadius REVISION(6, 11))
41 Q_PROPERTY(qreal bottomLeftRadius READ bottomLeftRadius WRITE setBottomLeftRadius NOTIFY bottomLeftRadiusChanged RESET resetBottomLeftRadius REVISION(6, 11))
42 Q_PROPERTY(qreal bottomRightRadius READ bottomRightRadius WRITE setBottomRightRadius NOTIFY bottomRightRadiusChanged RESET resetBottomRightRadius REVISION(6, 11))
43 Q_PROPERTY(qreal spread READ spread WRITE setSpread NOTIFY spreadChanged FINAL)
44 Q_PROPERTY(
bool cached READ isCached WRITE setCached NOTIFY cachedChanged FINAL)
45 Q_PROPERTY(QQuickItem *material READ material WRITE setMaterial NOTIFY materialChanged FINAL)
46 QML_NAMED_ELEMENT(RectangularShadow)
47 QML_ADDED_IN_VERSION(6, 9)
49 QQuickRectangularShadow(QQuickItem *parent =
nullptr);
51 QVector2D offset()
const;
52 void setOffset(
const QVector2D &offset);
54 void setColor(
const QColor &color);
56 void setBlur(qreal blur);
58 void setRadius(qreal radius);
60 void setSpread(qreal spread);
61 bool isCached()
const;
62 void setCached(
bool cached);
63 QQuickItem *material()
const;
64 void setMaterial(QQuickItem *item);
66 qreal topLeftRadius()
const;
67 void setTopLeftRadius(qreal radius);
68 void resetTopLeftRadius();
69 qreal topRightRadius()
const;
70 void setTopRightRadius(qreal radius);
71 void resetTopRightRadius();
72 qreal bottomLeftRadius()
const;
73 void setBottomLeftRadius(qreal radius);
74 void resetBottomLeftRadius();
75 qreal bottomRightRadius()
const;
76 void setBottomRightRadius(qreal radius);
77 void resetBottomRightRadius();
86 void materialChanged();
87 Q_REVISION(6, 11)
void topLeftRadiusChanged();
88 Q_REVISION(6, 11)
void topRightRadiusChanged();
89 Q_REVISION(6, 11)
void bottomLeftRadiusChanged();
90 Q_REVISION(6, 11)
void bottomRightRadiusChanged();
93 void componentComplete() override;
94 void geometryChange(
const QRectF &newGeometry,
const QRectF &oldGeometry) override;
95 void itemChange(ItemChange change,
const ItemChangeData &value) override;
98 Q_DECLARE_PRIVATE(QQuickRectangularShadow)