28 WindowEffect = 1 << 5,
30 Q_DECLARE_FLAGS(Features, Feature)
32 QWindow *window()
const {
return qobject_cast<QWindow *>(parent()); }
35 void setEnabledNoTitlebar(
bool enable);
36 void setWindowRadius(
int windowRadius);
37 void setBorderWidth(
int borderWidth);
38 void setBorderColor(
const QColor &borderColor);
39 void setShadowRadius(
int shadowRadius);
40 void setShadowOffset(
const QPoint &shadowOffset);
41 void setShadowColor(
const QColor &shadowColor);
42 void setEnableBlurWindow(
bool enableBlurWindow);
43 void setWindowEffect(DPlatformHandle::EffectScenes effectScene);
46 bool isEnabledNoTitlebar()
const {
return m_noTitlebar; }
47 int windowRadius()
const {
return m_radius; }
48 int borderWidth()
const {
return m_borderWidth; }
49 QColor borderColor()
const {
return m_borderColor; }
50 int shadowRadius()
const {
return m_shadowRadius; }
51 QPoint shadowOffset()
const {
return m_shadowOffset; }
52 QColor shadowColor()
const {
return m_shadowColor; }
53 bool enableBlurWindow()
const {
return m_blur; }
54 DPlatformHandle::EffectScenes windowEffect()
const {
return m_effectScene; }
57 void onActiveChanged();
58 void onSurfaceCreated();
59 void onSurfaceDestroyed();
63 bool eventFilter(QObject *watched, QEvent *event)
override;
64 void initWaylandWindow();
68 void updateFeature(T &member,
const T &value, Feature flag) {
70 m_initialized |= flag;
77 static QMap<QWindow *, DTreeLandPlatformWindowHelper*> windowMap;
80 bool m_noTitlebar =
false;
83 int m_borderWidth = 0;
85 int m_shadowRadius = 0;
86 QPoint m_shadowOffset;
88 DPlatformHandle::EffectScenes m_effectScene;
89 Features m_initialized;
91 bool m_applyScheduled =
false;
Definition personalizationwaylandclientextension.h:47