26#include <QGuiApplication>
32#include <QQmlParserStatus>
39 ShadowParams() =
default;
41 ShadowParams(
const QPoint &offset,
int radius, qreal opacity):
52struct CompositeShadowParams
54 CompositeShadowParams() =
default;
56 CompositeShadowParams(
58 const ShadowParams &shadow1,
59 const ShadowParams &shadow2)
65 {
return qMax(shadow1.radius, shadow2.radius) == 0; }
77 Q_PROPERTY(
QRect geometry READ geometry WRITE setGeometry NOTIFY geometryChanged)
78 Q_PROPERTY(qreal radius READ radius WRITE setRadius NOTIFY radiusChanged)
79 Q_PROPERTY(qreal strength READ strength WRITE setStrength NOTIFY strengthChanged)
83 ~WindowShadow() override;
85 static CompositeShadowParams lookupShadowParams(
int shadowSizeEnum);
87 void classBegin() override;
88 void componentComplete() override;
93 void setGeometry(const
QRect &rect);
94 QRect geometry() const;
96 void setRadius(qreal value);
97 qreal radius() {
return m_radius; }
99 qreal strength()
const;
100 void setStrength(qreal strength);
103 void onViewVisibleChanged(
bool);
106 void configureTiles();
112 void geometryChanged();
113 void enabledChanged();
116 void radiusChanged();
117 void strengthChanged();
124 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 Sat Dec 21 2024 17:04:30 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.