XdgSurface QML Type
XdgSurface 为 xdg 曲面提供桌面风格的合成器特定功能。更多
Import Statement: | import QtWayland.Compositor.XdgShell |
In C++: | QWaylandXdgSurface |
属性
- popup : XdgPopup
- shell : XdgShell
- surface : WaylandSurface
- toplevel : XdgToplevel
- windowGeometry : rect
- windowType : enum
方法
- void initialize(object xdgShell, object surface, object client, int id)
详细说明
该类型是XdgShell 扩展的一部分,提供了一种方法来扩展现有WaylandSurface 的功能,使其具备桌面风格合成器所特有的功能,如调整大小和移动表面。
它与 Wayland 界面xdg_surface
相对应。
属性文档
popup : XdgPopup |
该属性包含弹出式XdgSurface 特有的属性和方法。
另请参阅 toplevel 和XdgShell::popupCreated 。
shell : XdgShell |
此属性包含与此XdgSurface 关联的外壳。
surface : WaylandSurface |
该属性包含与XdgSurface 相关联的表面。
toplevel : XdgToplevel |
该属性包含顶层XdgSurface 特有的属性和方法。
另请参阅 popup 和XdgShell::toplevelCreated 。
windowGeometry : rect |
该属性包含QWaylandXdgSurface 的窗口几何图形。窗口几何图形从用户角度描述了窗口的可见边界。几何图形包括标题栏和边框(如果由客户端绘制),但不包括阴影。它用于对齐和平铺窗口。
windowType : enum |
该属性用于保存XdgSurface 的窗口类型。
方法文档
void initialize(object xdgShell, object surface, object client, int id) |
初始化XdgSurface ,将其与给定的xdgShell,surface,client 和id 关联。
© 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.