|
DtkDeclarative
DTK Declarative module
|
Public 槽 | |
| void | setEnabled (bool e) |
| DQuickWindowAttached::setEnabled 设置当前的窗口为 DTK 风格。 | |
| void | setWindowRadius (int windowRadius) |
| DQuickWindowAttached::setWindowRadius 设定窗口的圆角 | |
| void | setBorderWidth (int borderWidth) |
| DQuickWindowAttached::setBorderWidth 设定边框的宽度 | |
| void | setBorderColor (const QColor &borderColor) |
| DQuickWindowAttached::setBorderColor 设定边框的颜色 | |
| void | setShadowRadius (int shadowRadius) |
| DQuickWindowAttached::setShadowRadius 设定阴影区域的圆角 | |
| void | setShadowOffset (const QPoint &shadowOffset) |
| DQuickWindowAttached::setShadowOffset 设定阴影区域的偏移距离 | |
| void | setShadowColor (const QColor &shadowColor) |
| DQuickWindowAttached::setShadowColor 设定阴影的颜色 | |
| void | setTranslucentBackground (bool translucentBackground) |
| DQuickWindowAttached::setTranslucentBackground 设定时候擦除背景 | |
| void | setEnableSystemResize (bool enableSystemResize) |
| DQuickWindowAttached::setEnableSystemResize 设定是否允许系统调整窗口大小 | |
| void | setEnableSystemMove (bool enableSystemMove) |
| DQuickWindowAttached::setEnableSystemMove 设定时候允许系统移动窗口 | |
| void | setEnableBlurWindow (bool enableBlurWindow) |
| DQuickWindowAttached::setEnableBlurWindow 设定窗口有效区域内的背景将呈现出模糊效果。 | |
| void | setAlphaBufferSize (int size) |
| void | setWmWindowTypes (DTK_GUI_NAMESPACE::DWindowManagerHelper::WmWindowTypes wmWindowTypes) |
| DQuickWindowAttached::setWmWindowTypes 为此窗口设置与本地窗口管理器 息息相关的窗口类型,这些类型不保证在所有平台下都能生效,因此可能会影响程序 的跨平台行为,请尽量使用 QWindow::setFlags 设置所需要的窗口类型。 | |
| void | setMotifFunctions (DTK_GUI_NAMESPACE::DWindowManagerHelper::MotifFunctions motifFunctions) |
| void | setMotifDecorations (DTK_GUI_NAMESPACE::DWindowManagerHelper::MotifDecorations motifDecorations) |
| void | popupSystemWindowMenu () |
| bool | setWindowBlurAreaByWM (const QVector< DPlatformHandle::WMBlurArea > &area) |
| bool | setWindowBlurAreaByWM (const QList< QPainterPath > &area) |
| void | setClipPathByWM (const QPainterPath &clipPath) |
| void | setClipPath (QQuickPath *path) |
| void | setOverlayExited (QQuickTransition *exit) |
| void | setLoadingOverlay (QQmlComponent *component) |
Public 成员函数 | |
| DQuickWindowAttached (QWindow *window) | |
| QQuickWindow * | window () const |
| bool | isEnabled () const |
| 这个属性用于判定是否使用了 DTK 风格的窗口。 | |
| int | windowRadius () const |
| int | borderWidth () const |
| QColor | borderColor () const |
| int | shadowRadius () const |
| QPoint | shadowOffset () const |
| QColor | shadowColor () const |
| QRegion | frameMask () const |
| 设置 Frame Window 的遮罩,和 clipPath 不同的是,它的裁剪包括阴影部分。 | |
| bool | translucentBackground () const |
| bool | enableSystemResize () const |
| DQuickWindowAttached::enableSystemResize | |
| bool | enableSystemMove () const |
| bool | enableBlurWindow () const |
| int | alphaBufferSize () const |
| QQuickPath * | clipPath () const |
| QQuickTransition * | overlayExited () const |
| QQmlComponent * | loadingOverlay () const |
| DQuickAppLoaderItem * | appLoader () const |
| void | setAppLoader (DQuickAppLoaderItem *item) |
| DTK_GUI_NAMESPACE::DWindowManagerHelper::WmWindowTypes | wmWindowTypes () const |
| DQuickWindowAttached::wmWindowTypes 返回此窗口在窗口管理器级别的窗口类型 需要注意的是,此值只是内部状态的记录,只会在调用 setWmWindowTypes 时更新,默认值为 DWindowManagerHelper::UnknowWindowType | |
| DTK_GUI_NAMESPACE::DWindowManagerHelper::MotifFunctions | motifFunctions () const |
| DTK_GUI_NAMESPACE::DWindowManagerHelper::MotifDecorations | motifDecorations () const |
Protected 成员函数 | |
| bool | eventFilter (QObject *watched, QEvent *event) override |
属性 | |
| QQuickWindow * | window |
| bool | enabled |
| int | windowRadius |
| 这个属性保存着窗口圆角值。 | |
| int | borderWidth |
| 这个属性保存着窗口边框的宽度。 | |
| QColor | borderColor |
| 这个属性保存这窗口边框的颜色。 | |
| int | shadowRadius |
| 这个属性保存着窗口阴影半径。 | |
| QPoint | shadowOffset |
| 这个属性保存着窗口阴影偏移量。 | |
| QColor | shadowColor |
| 这个属性保存着窗口阴影颜色。 | |
| bool | translucentBackground |
| 如果此属性值为 true,则在更新窗口绘制内容之前会先清空要更新区域内的图像,否则不清空。 | |
| bool | enableSystemResize |
| bool | enableSystemMove |
| 如果此属性值为 ture,则允许外界移动窗口的位置(如使用鼠标拖拽移动窗口),否则不允许。 | |
| bool | enableBlurWindow |
| 如果此属性为 true,则窗口有效区域内的背景将呈现出模糊效果,否则无特效。 | |
| int | alphaBufferSize |
| QQuickPath * | clipPath |
| DTK_GUI_NAMESPACE::DWindowManagerHelper::WmWindowTypes | wmWindowTypes |
| DTK_GUI_NAMESPACE::DWindowManagerHelper::MotifFunctions | motifFunctions |
| DTK_GUI_NAMESPACE::DWindowManagerHelper::MotifDecorations | motifDecorations |
| QQuickTransition * | overlayExited |
| QQmlComponent * | loadingOverlay |
| DTK_QUICK_NAMESPACE::DQuickAppLoaderItem * | appLoader |
友元 | |
| class | DQuickBehindWindowBlur |
| class | DQuickBehindWindowBlurPrivate |
| bool Dtk::Quick::DQuickWindowAttached::enableSystemResize | ( | ) | const |
DQuickWindowAttached::enableSystemResize
| QRegion Dtk::Quick::DQuickWindowAttached::frameMask | ( | ) | const |
|
slot |
DQuickWindowAttached::setBorderColor 设定边框的颜色
| borderColor 边框的颜色 |
|
slot |
DQuickWindowAttached::setBorderWidth 设定边框的宽度
| borderWidth 边框的宽度 |
|
slot |
DQuickWindowAttached::setEnableBlurWindow 设定窗口有效区域内的背景将呈现出模糊效果。
| enableBlurWindow | true有特效 false无特效。 |
|
slot |
|
slot |
DQuickWindowAttached::setEnableSystemMove 设定时候允许系统移动窗口
| enableSystemMove true允许移动 false不允许移动 |
|
slot |
DQuickWindowAttached::setEnableSystemResize 设定是否允许系统调整窗口大小
| enableSystemResize true允许系统调整 false不允许系统调整 |
|
slot |
DQuickWindowAttached::setShadowColor 设定阴影的颜色
| shadowColor 阴影的颜色 |
|
slot |
DQuickWindowAttached::setShadowOffset 设定阴影区域的偏移距离
| shadowOffset 阴影区域的偏移距离 |
|
slot |
DQuickWindowAttached::setShadowRadius 设定阴影区域的圆角
| shadowRadius 阴影区域圆角大小 |
|
slot |
DQuickWindowAttached::setTranslucentBackground 设定时候擦除背景
| translucentBackground | true擦除背景 false不擦除背景 |
|
slot |
DQuickWindowAttached::setWindowRadius 设定窗口的圆角
| windowRadius 窗口的圆角值 |
|
slot |
DQuickWindowAttached::setWmWindowTypes 为此窗口设置与本地窗口管理器 息息相关的窗口类型,这些类型不保证在所有平台下都能生效,因此可能会影响程序 的跨平台行为,请尽量使用 QWindow::setFlags 设置所需要的窗口类型。
| wmWindowTypes | 新的窗口类型,此枚举值可组合使用 |
|
readwrite |
如果此属性值为 ture,则允许外界移动窗口的位置(如使用鼠标拖拽移动窗口),否则不允许。