Kirigami2
39 void setWidth(qreal newWidth);
42 void setColor(const
QColor &newColor);
46 inline
bool isEnabled()
const
48 return !qFuzzyIsNull(m_width);
94 void setSize(qreal newSize);
97 void setXOffset(qreal newXOffset);
100 void setYOffset(qreal newYOffset);
103 void setColor(const
QColor &newShadowColor);
109 qreal m_xOffset = 0.0;
110 qreal m_yOffset = 0.0;
127 Q_PROPERTY(qreal topLeftRadius READ topLeft WRITE setTopLeft NOTIFY changed)
136 Q_PROPERTY(qreal topRightRadius READ topRight WRITE setTopRight NOTIFY changed)
145 Q_PROPERTY(qreal bottomLeftRadius READ bottomLeft WRITE setBottomLeft NOTIFY changed)
154 Q_PROPERTY(qreal bottomRightRadius READ bottomRight WRITE setBottomRight NOTIFY changed)
159 qreal topLeft() const;
160 void setTopLeft(qreal newTopLeft);
162 qreal topRight() const;
163 void setTopRight(qreal newTopRight);
165 qreal bottomLeft() const;
166 void setBottomLeft(qreal newBottomLeft);
168 qreal bottomRight() const;
169 void setBottomRight(qreal newBottomRight);
176 float m_topLeft = -1.0;
177 float m_topRight = -1.0;
178 float m_bottomLeft = -1.0;
179 float m_bottomRight = -1.0;
206 Q_PROPERTY(qreal radius READ radius WRITE setRadius NOTIFY radiusChanged)
280 Q_PROPERTY(
bool softwareRendering READ isSoftwareRendering NOTIFY softwareRenderingChanged)
329 qreal radius()
const;
330 void setRadius(qreal newRadius);
334 void setColor(
const QColor &newColor);
337 RenderType renderType()
const;
338 void setRenderType(RenderType renderType);
341 void componentComplete()
override;
343 bool isSoftwareRendering()
const;
346 void softwareRenderingChanged();
351 QSGNode *updatePaintNode(
QSGNode *node, QQuickItem::UpdatePaintNodeData *data)
override;
354 void checkSoftwareItem();
355 const std::unique_ptr<BorderGroup> m_border;
356 const std::unique_ptr<ShadowGroup> m_shadow;
357 const std::unique_ptr<CornersGroup> m_corners;
358 qreal m_radius = 0.0;
360 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.
@ LowQuality
Use the lowest rendering quality, even if the hardware could handle higher quality rendering.
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.
@ Auto
Automatically determine the optimal rendering type.
RenderType
Available rendering types for ShadowedRectangle.
qreal xOffset
This property holds the shadow's offset in pixels on the X axis.
@ HighQuality
Use the highest rendering quality possible, even if the hardware might not be able to handle it norma...
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 Sun Jan 29 2023 04:11:03 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.