WlShellSurface QML Type
提供了一个wl_shell_surface ,为画布提供桌面风格的合成器特定功能。更多内容...
| Import Statement: | import QtWayland.Compositor.WlShell |
| In C++: | QWaylandWlShellSurface |
属性
- className : string
- shell : WlShell
- surface : WaylandSurface
- title : string
- windowType : enum
方法
- void initialize(WlShell shell, WaylandSurface surface, WaylandResource resource)
- void ping()
- void sendConfigure(size s, enum edges)
- void sendPopupDone()
详细说明
该类型属于WlShell 扩展,提供了一种方式,可通过添加桌面风格合成器特有的功能(例如调整画布大小和移动画布)来扩展现有WaylandSurface 的功能。
它对应于 Wayland 接口wl_shell_surface 。
属性文档
className : string [read-only]
该属性存储了WlShellSurface 的类名。
shell : WlShell [read-only]
该属性存储了与该WlShellSurface 关联的shell。
surface : WaylandSurface [read-only]
该属性存储与该WlShellSurface 相关的wl_surface 。
title : string [read-only]
该房产被授予“WlShellSurface ”称号。
windowType : enum [read-only]
该属性存储WlShellSurface 的窗口类型。
方法文档
void initialize(WlShell shell, WaylandSurface surface, WaylandResource resource)
初始化WlShellSurface ,并将其与给定的shell 、surface 和resource 相关联。
void ping()
向客户端发送一个ping事件。如果客户端对该事件作出响应,则会发出pong信号。
void sendConfigure(size s, enum edges)
向客户端发送一个配置事件,建议其将画布调整为给定的尺寸s 。edges 提供了有关画布如何被调整大小的提示。
void sendPopupDone()
向客户端发送一个 popup_done 事件,以指示用户已在客户端界面区域之外的某处点击。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.