21 bool customSourceImage =
false;
22 bool autoScaleSourceImage =
false;
26 int blurRectXRadius = 0;
27 int blurRectYRadius = 0;
28 qint16 maskAlpha = -1;
31 bool blurEnabled =
true;
33 QColor maskColor = Qt::transparent;
34 DBlurEffectWidget::MaskColorType maskColorType = DBlurEffectWidget::AutoColor;
35 QPainterPath maskPath;
40 bool isBehindWindowBlendMode()
const;
43 void addToBlurEffectWidgetHash();
44 void removeFromBlurEffectWidgetHash();
46 bool updateWindowBlurArea();
47 void setMaskColor(
const QColor &color);
48 void setMaskAlpha(
const quint8 alpha);
49 quint8 getMaskColorAlpha()
const;
50 QColor getMaskColor(
const QColor &baseColor)
const;
52 void resetSourceImage();
54 static QMultiHash<QWidget*, const DBlurEffectWidget*> blurEffectWidgetHash;
55 static QHash<const DBlurEffectWidget*, QWidget*> windowOfBlurEffectHash;
56 static bool updateWindowBlurArea(QWidget *topLevelWidget);