19 QML_NAMED_ELEMENT(ElevationImpl)
54 void setColor(const QColor &newColor);
69 const QQuickItem::ItemChangeData &value) override;
70 QSGNode *
updatePaintNode(QSGNode *node, QQuickItem::UpdatePaintNodeData *data) override;
73 qreal m_elevation = 0.0;
75 std::optional<qreal> m_topLeftRadius;
76 std::optional<qreal> m_topRightRadius;
77 std::optional<qreal> m_bottomLeftRadius;
78 std::optional<qreal> m_bottomRightRadius;
79 QColor m_color = Qt::black;
A QQuickItem that renders elevation-based shadow effects.
void setColor(const QColor &newColor)
Sets the shadow color.
void setBottomLeftRadius(qreal newBottomLeftRadius)
QSGNode * updatePaintNode(QSGNode *node, QQuickItem::UpdatePaintNodeData *data) override
Updates the paint node for rendering.
void setElevation(qreal elevation)
Sets the elevation level.
void topLeftRadiusChanged(qreal topLeftRadius)
void radiusChanged(qreal radius)
void setBottomRightRadius(qreal newBottomRightRadius)
void componentComplete() override
Called when the component is complete.
void itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &value) override
Handles item changes.
void colorChanged(QColor color)
void setRadius(qreal newRadius)
Sets the radius for all corners.
void setTopLeftRadius(qreal newTopLeftRadius)
void topRightRadiusChanged(qreal topRightRadius)
void bottomLeftRadiusChanged(qreal bottomLeftRadius)
void elevationChanged(qreal elevation)
void bottomRightRadiusChanged(qreal bottomRightRadius)
void setTopRightRadius(qreal newTopRightRadius)