52 Q_PROPERTY(QQuickWindow *window READ window CONSTANT)
53 Q_PROPERTY(
bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged)
54 Q_PROPERTY(
int windowRadius READ windowRadius WRITE setWindowRadius NOTIFY windowRadiusChanged)
55 Q_PROPERTY(
int borderWidth READ borderWidth WRITE setBorderWidth NOTIFY borderWidthChanged)
56 Q_PROPERTY(QColor borderColor READ borderColor WRITE setBorderColor NOTIFY borderColorChanged)
57 Q_PROPERTY(
int shadowRadius READ shadowRadius WRITE setShadowRadius NOTIFY shadowRadiusChanged)
58 Q_PROPERTY(QPoint shadowOffset READ shadowOffset WRITE setShadowOffset NOTIFY shadowOffsetChanged)
59 Q_PROPERTY(QColor shadowColor READ shadowColor WRITE setShadowColor NOTIFY shadowColorChanged)
60 Q_PROPERTY(
bool translucentBackground READ translucentBackground WRITE setTranslucentBackground NOTIFY translucentBackgroundChanged)
61 Q_PROPERTY(
bool enableSystemResize READ enableSystemResize WRITE setEnableSystemResize NOTIFY enableSystemResizeChanged)
62 Q_PROPERTY(
bool enableSystemMove READ enableSystemMove WRITE setEnableSystemMove NOTIFY enableSystemMoveChanged)
63 Q_PROPERTY(
bool enableBlurWindow READ enableBlurWindow WRITE setEnableBlurWindow NOTIFY enableBlurWindowChanged)
64 Q_PROPERTY(
int alphaBufferSize READ alphaBufferSize WRITE setAlphaBufferSize NOTIFY alphaBufferSizeChanged)
65 Q_PROPERTY(QQuickPath *clipPath READ clipPath WRITE setClipPath NOTIFY clipPathChanged)
66 Q_PROPERTY(DTK_GUI_NAMESPACE::DWindowManagerHelper::WmWindowTypes wmWindowTypes READ wmWindowTypes WRITE setWmWindowTypes NOTIFY wmWindowTypesChanged)
67 Q_PROPERTY(DTK_GUI_NAMESPACE::DWindowManagerHelper::MotifFunctions motifFunctions READ motifFunctions WRITE setMotifFunctions NOTIFY motifFunctionsChanged)
68 Q_PROPERTY(DTK_GUI_NAMESPACE::DWindowManagerHelper::MotifDecorations motifDecorations READ motifDecorations WRITE setMotifDecorations NOTIFY motifDecorationsChanged)
69 Q_PROPERTY(QQuickTransition *overlayExited READ overlayExited WRITE setOverlayExited NOTIFY overlayExitedChanged FINAL)
70 Q_PROPERTY(QQmlComponent *loadingOverlay READ loadingOverlay WRITE setLoadingOverlay NOTIFY loadingOverlayChanged FINAL)
71 Q_PROPERTY(DTK_QUICK_NAMESPACE::
DQuickAppLoaderItem *appLoader READ appLoader NOTIFY appLoaderChanged)
72#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
73 Q_PROPERTY(DTK_GUI_NAMESPACE::DGuiApplicationHelper::ColorType themeType READ themeType WRITE setThemeType RESET resetThemeType NOTIFY themeTypeChanged)
75 Q_PROPERTY(DTK_GUI_NAMESPACE::DPlatformHandle::EffectScene windowEffect READ windowEffect WRITE setWindowEffect NOTIFY windowEffectChanged)
76 Q_PROPERTY(DTK_GUI_NAMESPACE::DPlatformHandle::EffectType windowStartUpEffect READ windowStartUpEffect WRITE setWindowStartUpEffect NOTIFY windowStartUpEffectChanged)
77#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
84 QQuickWindow *window()
const;
85 bool isEnabled()
const;
87 int windowRadius()
const;
89 int borderWidth()
const;
90 QColor borderColor()
const;
92 int shadowRadius()
const;
93 QPoint shadowOffset()
const;
94 QColor shadowColor()
const;
96 QRegion frameMask()
const;
98 bool translucentBackground()
const;
99 bool enableSystemResize()
const;
100 bool enableSystemMove()
const;
101 bool enableBlurWindow()
const;
102 int alphaBufferSize()
const;
104 QQuickPath *clipPath()
const;
106 QQuickTransition *overlayExited()
const;
107 QQmlComponent *loadingOverlay()
const;
112 DTK_GUI_NAMESPACE::DWindowManagerHelper::WmWindowTypes wmWindowTypes()
const;
113 DTK_GUI_NAMESPACE::DWindowManagerHelper::MotifFunctions motifFunctions()
const;
114 DTK_GUI_NAMESPACE::DWindowManagerHelper::MotifDecorations motifDecorations()
const;
116#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
117 DTK_GUI_NAMESPACE::DGuiApplicationHelper::ColorType themeType()
const;
118 void setThemeType(
const DTK_GUI_NAMESPACE::DGuiApplicationHelper::ColorType &newThemeType);
119 void resetThemeType();
122 DTK_GUI_NAMESPACE::DPlatformHandle::EffectScene windowEffect()
const;
123 DTK_GUI_NAMESPACE::DPlatformHandle::EffectType windowStartUpEffect()
const;
126 void setEnabled(
bool e);
128 void setWindowRadius(
int windowRadius);
130 void setBorderWidth(
int borderWidth);
131 void setBorderColor(
const QColor &borderColor);
133 void setShadowRadius(
int shadowRadius);
134 void setShadowOffset(
const QPoint &shadowOffset);
135 void setShadowColor(
const QColor &shadowColor);
137 void setTranslucentBackground(
bool translucentBackground);
138 void setEnableSystemResize(
bool enableSystemResize);
139 void setEnableSystemMove(
bool enableSystemMove);
140 void setEnableBlurWindow(
bool enableBlurWindow);
141 void setAlphaBufferSize(
int size);
143 void setWmWindowTypes(DTK_GUI_NAMESPACE::DWindowManagerHelper::WmWindowTypes wmWindowTypes);
144 void setMotifFunctions(DTK_GUI_NAMESPACE::DWindowManagerHelper::MotifFunctions motifFunctions);
145 void setMotifDecorations(DTK_GUI_NAMESPACE::DWindowManagerHelper::MotifDecorations motifDecorations);
147 void popupSystemWindowMenu();
149 bool setWindowBlurAreaByWM(
const QVector<DPlatformHandle::WMBlurArea> &area);
150 bool setWindowBlurAreaByWM(
const QList<QPainterPath> &area);
152 void setClipPathByWM(
const QPainterPath &clipPath);
153 void setClipPath(QQuickPath *path);
154 void setOverlayExited(QQuickTransition *exit);
155 void setLoadingOverlay(QQmlComponent *component);
157 void setWindowEffect(DTK_GUI_NAMESPACE::DPlatformHandle::EffectScenes effect);
158 void setWindowStartUpEffect(DTK_GUI_NAMESPACE::DPlatformHandle::EffectTypes type);
161 bool eventFilter(QObject *watched, QEvent *event)
override;
164 void enabledChanged();
165 void windowRadiusChanged();
166 void borderWidthChanged();
167 void borderColorChanged();
168 void shadowRadiusChanged();
169 void shadowOffsetChanged();
170 void shadowColorChanged();
171 void translucentBackgroundChanged();
172 void enableSystemResizeChanged();
173 void enableSystemMoveChanged();
174 void enableBlurWindowChanged();
175 void wmWindowTypesChanged();
176 void motifFunctionsChanged();
177 void motifDecorationsChanged();
178 void alphaBufferSizeChanged();
179 void clipPathChanged();
180 void overlayExitedChanged();
181 void loadingOverlayChanged();
182 void appLoaderChanged();
183#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
184 void themeTypeChanged();
186 void windowEffectChanged();
187 void windowStartUpEffectChanged();
191 D_PRIVATE_SLOT(
void _q_onWindowMotifHintsChanged(quint32))
192 D_PRIVATE_SLOT(
void _q_updateBlurAreaForWindow())
193 D_PRIVATE_SLOT(
void _q_updateClipPath())
194 D_PRIVATE_SLOT(
void _q_ensurePlatformHandle())
195#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
196 D_PRIVATE_SLOT(
void _q_onPaletteChanged())
197 D_PRIVATE_SLOT(
void _q_updateWindowPalette())