MauiKit Controls
24#include <QGuiApplication>
30#include <QQmlParserStatus>
37 ShadowParams() =
default;
39 ShadowParams(
const QPoint &offset,
int radius, qreal opacity):
50struct CompositeShadowParams
52 CompositeShadowParams() =
default;
54 CompositeShadowParams(
56 const ShadowParams &shadow1,
57 const ShadowParams &shadow2)
63 {
return qMax(shadow1.radius, shadow2.radius) == 0; }
76 Q_PROPERTY(
QRect geometry READ geometry WRITE setGeometry NOTIFY geometryChanged)
77 Q_PROPERTY(qreal radius READ radius WRITE setRadius NOTIFY radiusChanged)
78 Q_PROPERTY(qreal strength READ strength WRITE setStrength NOTIFY strengthChanged)
82 ~WindowShadow() override;
84 static CompositeShadowParams lookupShadowParams(
int shadowSizeEnum);
86 void classBegin() override;
87 void componentComplete() override;
92 void setGeometry(const
QRect &rect);
93 QRect geometry() const;
95 void setRadius(qreal value);
96 qreal radius() {
return m_radius; }
98 qreal strength()
const;
99 void setStrength(qreal strength);
102 void onViewVisibleChanged(
bool);
105 void configureTiles();
111 void geometryChanged();
112 void enabledChanged();
115 void radiusChanged();
116 void strengthChanged();
123 qreal m_strength = 1.2;
tilesets are collections of stretchable pixmaps corresponding to a given widget corners,...
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:56:16 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.