Kirigami2
42 void setWidth(qreal newWidth);
45 void setColor(const
QColor &newColor);
49 inline
bool isEnabled()
const
51 return !qFuzzyIsNull(m_width);
97 void setSize(qreal newSize);
100 void setXOffset(qreal newXOffset);
103 void setYOffset(qreal newYOffset);
106 void setColor(const
QColor &newShadowColor);
112 qreal m_xOffset = 0.0;
113 qreal m_yOffset = 0.0;
130 Q_PROPERTY(qreal topLeftRadius READ topLeft WRITE setTopLeft NOTIFY changed)
139 Q_PROPERTY(qreal topRightRadius READ topRight WRITE setTopRight NOTIFY changed)
148 Q_PROPERTY(qreal bottomLeftRadius READ bottomLeft WRITE setBottomLeft NOTIFY changed)
157 Q_PROPERTY(qreal bottomRightRadius READ bottomRight WRITE setBottomRight NOTIFY changed)
162 qreal topLeft() const;
163 void setTopLeft(qreal newTopLeft);
165 qreal topRight() const;
166 void setTopRight(qreal newTopRight);
168 qreal bottomLeft() const;
169 void setBottomLeft(qreal newBottomLeft);
171 qreal bottomRight() const;
172 void setBottomRight(qreal newBottomRight);
179 float m_topLeft = -1.0;
180 float m_topRight = -1.0;
181 float m_bottomLeft = -1.0;
182 float m_bottomRight = -1.0;
209 Q_PROPERTY(qreal radius READ radius WRITE setRadius NOTIFY radiusChanged)
276 Q_PROPERTY(RenderType renderType READ renderType WRITE setRenderType CONSTANT)
283 Q_PROPERTY(
bool softwareRendering READ isSoftwareRendering NOTIFY softwareRenderingChanged)
332 qreal radius()
const;
333 void setRadius(qreal newRadius);
337 void setColor(
const QColor &newColor);
340 RenderType renderType()
const;
341 void setRenderType(RenderType renderType);
344 void componentComplete()
override;
346 bool isSoftwareRendering()
const;
349 void softwareRenderingChanged();
354 QSGNode *updatePaintNode(
QSGNode *node, QQuickItem::UpdatePaintNodeData *data)
override;
357 void checkSoftwareItem();
358 const std::unique_ptr<BorderGroup> m_border;
359 const std::unique_ptr<ShadowGroup> m_shadow;
360 const std::unique_ptr<CornersGroup> m_corners;
361 qreal m_radius = 0.0;
363 RenderType m_renderType = RenderType::Auto;
qreal width
This property holds the border's width in pixels.
qreal yOffset
This property holds the shadow's offset in pixels on the Y axis.
QColor color
This property holds the shadow's color.
Grouped property for rectangle border.
A rectangle with a shadow behind it.
Grouped property for corner radius.
qreal size
This property holds the shadow's approximate size in pixels.
Grouped property for the rectangle's shadow.
QColor color
This property holds the border's color.
qreal xOffset
This property holds the shadow's offset in pixels on the X axis.
A rectangle with a border and rounded corners, rendered through QPainter.
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 04:08:21 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.