33 enum BoolOptional : qint8 {
42 bool ensurePlatformHandle();
43 void destoryPlatformHandle();
44 void setWindow(QWindow *newWindow);
45 void _q_onWindowMotifHintsChanged(quint32 winId);
49 void _q_updateBlurAreaForWindow();
50 void _q_updateClipPath();
51 void _q_ensurePlatformHandle();
52#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
54 void _q_updateWindowPalette();
55 void _q_onPaletteChanged();
58 QPointer<QWindow> window =
nullptr;
59 DPlatformHandle *handle =
nullptr;
60 BoolOptional explicitEnable {Invalid};
61 BoolOptional explicitTranslucentBackground {Invalid};
62 BoolOptional explicitEnableSystemResize {Invalid};
63 BoolOptional explicitEnableSystemMove {Invalid};
64 BoolOptional explicitEnableBlurWindow {Invalid};
65 qint8 explicitWindowRadius = -1;
66 qint8 explicitBorderWidth = -1;
67 qint8 explicitShadowRadius = -1;
68 QPoint explicitShadowOffset;
69 QColor explicitBorderColor;
70 QColor explicitShadowColor;
71 DPlatformHandle::EffectScenes explicitEffectScene {};
72 DPlatformHandle::EffectTypes explicitEffectType {};
74 DWindowManagerHelper::WmWindowTypes wmWindowTypes;
75 DWindowManagerHelper::MotifFunctions motifFunctions;
76 DWindowManagerHelper::MotifDecorations motifDecorations;
78 QList<DQuickBehindWindowBlur*> blurList;
79 QQuickPath *clipPath =
nullptr;
80 QQuickTransition *overlayExitedTransition =
nullptr;
81 QQmlComponent *loadingOverlay =
nullptr;
83#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
84 DGuiApplicationHelper::ColorType themeType{DGuiApplicationHelper::UnknownType};
85 bool paletteInit =
false;
86 QQuickPalette *quickPalette =
nullptr;
87 QQuickPalette *inactiveQuickPalette =
nullptr;
88 std::array<QMetaObject::Connection, 2> paletteConnections;