21 void setEnabled(
bool enabled)
override;
22 bool isEnabled()
const override;
24 bool isEnabledNoTitlebar()
const override;
25 bool setEnabledNoTitlebar(
bool enable)
override;
27 int windowRadius()
const override;
28 void setWindowRadius(
int windowRadius)
override;
30 int borderWidth()
const override;
31 void setBorderWidth(
int borderWidth)
override;
33 QColor borderColor()
const override;
34 void setBorderColor(
const QColor &borderColor)
override;
36 int shadowRadius()
const override;
37 void setShadowRadius(
int shadowRadius)
override;
39 QPoint shadowOffset()
const override;
40 void setShadowOffset(
const QPoint &shadowOffset)
override;
42 QColor shadowColor()
const override;
43 void setShadowColor(
const QColor &shadowColor)
override;
45 void setDisableWindowOverrideCursor(
bool disable)
override;
47 DPlatformHandle::EffectScene windowEffect()
override;
48 void setWindowEffect(DPlatformHandle::EffectScenes effectScene)
override;
50 DPlatformHandle::EffectType windowStartUpEffect()
override;
51 void setWindowStartUpEffect(DPlatformHandle::EffectTypes effectType)
override;
53 QPainterPath clipPath()
const override;
54 void setClipPath(
const QPainterPath &clipPath)
override;
56 QRegion frameMask()
const override;
57 void setFrameMask(
const QRegion &frameMask)
override;
59 QMargins frameMargins()
const override;
61 bool translucentBackground()
const override;
62 void setTranslucentBackground(
bool translucentBackground)
override;
64 bool enableSystemResize()
const override;
65 void setEnableSystemResize(
bool enableSystemResize)
override;
67 bool enableSystemMove()
const override;
68 void setEnableSystemMove(
bool enableSystemMove)
override;
70 bool enableBlurWindow()
const override;
71 void setEnableBlurWindow(
bool enableBlurWindow)
override;
74 bool eventFilter(QObject *watched, QEvent *event)
override;
78 void updateRoundedCorners();
79 void updateSystemTheme();
82 void updateClipPath();
83 void updateFrameMask();
84 void updateTranslucentBackground();
85 void updateBlurWindow();
87 int m_windowRadius = 12;
88 int m_borderWidth = 1;
90 int m_shadowRadius = -1;
91 QPoint m_shadowOffset;
93 DPlatformHandle::EffectScenes m_windowEffect;
94 DPlatformHandle::EffectTypes m_windowStartUpEffect;
95 QPainterPath m_clipPath;
97 bool m_translucentBackground =
false;
98 bool m_enableSystemResize =
true;
99 bool m_enableSystemMove =
true;
100 bool m_enableBlurWindow =
false;
101 bool m_disableOverrideCursor =
false;
102 bool m_enabled =
false;
103 bool m_windowVisible =
false;
104 bool m_systemDarkMode =
false;
105 bool m_windowMoving =
false;
106 QPointF m_pressPoint;