29 Q_PROPERTY(qreal dashOffset READ dashOffset WRITE setDashOffset NOTIFY dashOffsetChanged FINAL)
30 Q_PROPERTY(qreal cornerRadius READ cornerRadius WRITE setCornerRadius NOTIFY cornerRadiusChanged
32 Q_PROPERTY(
int pointCount READ pointCount WRITE setPointCount NOTIFY pointCountChanged FINAL)
33 Q_PROPERTY(qreal ratio READ ratio WRITE setRatio NOTIFY ratioChanged FINAL)
35 qreal strokeWidth READ strokeWidth WRITE setStrokeWidth NOTIFY strokeWidthChanged FINAL)
36 Q_PROPERTY(QColor fillColor READ fillColor WRITE setFillColor NOTIFY fillColorChanged FINAL)
37 Q_PROPERTY(QColor strokeColor READ strokeColor WRITE setStrokeColor NOTIFY strokeColorChanged
39 Q_PROPERTY(QQuickShapePath::CapStyle capStyle READ capStyle WRITE setCapStyle NOTIFY
40 capStyleChanged FINAL)
41 Q_PROPERTY(QQuickShapePath::JoinStyle joinStyle READ joinStyle WRITE setJoinStyle NOTIFY
42 joinStyleChanged FINAL)
43 Q_PROPERTY(QQuickShapePath::StrokeStyle strokeStyle READ strokeStyle WRITE setStrokeStyle NOTIFY
44 strokeStyleChanged FINAL)
45 Q_PROPERTY(QList<qreal> dashPattern READ dashPattern WRITE setDashPattern NOTIFY
46 dashPatternChanged FINAL)
47 Q_PROPERTY(QQuickShapeGradient *fillGradient READ fillGradient WRITE setFillGradient NOTIFY
48 gradientChanged RESET resetFillGradient FINAL)
50 QML_NAMED_ELEMENT(StarShape)
51 QML_ADDED_IN_VERSION(6, 11)
54 QQuickStarShape(QQuickItem *parent =
nullptr);
55 ~QQuickStarShape() override;
57 qreal dashOffset()
const;
58 void setDashOffset(qreal);
60 qreal cornerRadius()
const;
61 void setCornerRadius(qreal);
66 int pointCount()
const;
67 void setPointCount(
int);
69 qreal strokeWidth()
const;
70 void setStrokeWidth(qreal);
72 QColor fillColor()
const;
73 void setFillColor(
const QColor &color);
75 QColor strokeColor()
const;
76 void setStrokeColor(
const QColor &color);
78 QQuickShapePath::CapStyle capStyle()
const;
79 void setCapStyle(QQuickShapePath::CapStyle style);
81 QQuickShapePath::JoinStyle joinStyle()
const;
82 void setJoinStyle(QQuickShapePath::JoinStyle style);
84 QQuickShapePath::StrokeStyle strokeStyle()
const;
85 void setStrokeStyle(QQuickShapePath::StrokeStyle style);
87 QList<qreal> dashPattern()
const;
88 void setDashPattern(
const QList<qreal> &array);
90 QQuickShapeGradient *fillGradient()
const;
91 void setFillGradient(QQuickShapeGradient *fillGradient);
92 void resetFillGradient();
95 void cornerRadiusChanged();
97 void pointCountChanged();
98 void strokeColorChanged();
99 void strokeWidthChanged();
100 void fillColorChanged();
101 void joinStyleChanged();
102 void capStyleChanged();
103 void strokeStyleChanged();
104 void dashOffsetChanged();
105 void dashPatternChanged();
106 void gradientChanged();
109 void itemChange(ItemChange change,
const ItemChangeData &value) override;
112 Q_DISABLE_COPY(QQuickStarShape)
113 Q_DECLARE_PRIVATE(QQuickStarShape)