5#ifndef DBLUREFFECTWIDGET_P_H
6#define DBLUREFFECTWIDGET_P_H
9#include <DObjectPrivate>
10#include <DBlurEffectWidget>
12DWIDGET_BEGIN_NAMESPACE
21 bool customSourceImage =
false;
22 bool autoScaleSourceImage =
false;
26 int blurRectXRadius = 0;
27 int blurRectYRadius = 0;
28 qint16 maskAlpha = -1;
31 bool blurEnabled =
true;
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();
56 static bool updateWindowBlurArea(QWidget *topLevelWidget);