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 |
该属性包含WlShellSurface 的类名。
shell : WlShell |
此属性包含与此WlShellSurface 关联的 shell。
surface : WaylandSurface |
该属性包含与该WlShellSurface 关联的wl_surface
。
title : string |
该属性表示WlShellSurface 的标题。
windowType : enum |
该属性表示WlShellSurface 的窗口类型。
方法文档
void initialize(WlShell shell, WaylandSurface surface, WaylandResource resource) |
初始化WlShellSurface ,并将其与给定的shell 、surface 和resource 关联。
void ping() |
向客户端发送 ping 事件。如果客户端回复了该事件,就会发出 pong 信号。
void sendConfigure(size s, enum edges) |
向客户端发送一个 configure 事件,建议客户端将其表面大小调整到所提供的尺寸s 。edges 会提示如何调整曲面大小。
void sendPopupDone() |
向客户端发送 popup_done 事件,提示用户点击了客户端表面之外的某处。
© 2025 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.