Qt Wayland Compositor C++ Classes
提供用于编写自定义 Wayland 显示服务器的 C++ 类。更多
类
持有表面缓冲区的引用 | |
代表连接到 QWaylandCompositor 的客户端 | |
管理 Wayland 显示服务器 | |
编辑器扩展的基类 | |
用于子类化 QWaylandCompositorExtension 的便利类 | |
提供可抑制编辑器空闲行为的扩展 | |
嵌入式用户界面扩展 | |
识别和调整曲面大小的简单方法 | |
代表键盘设备 | |
可包含 Wayland 扩展的对象基类 | |
代表由合成器管理的可显示区域 | |
保存输出的分辨率和刷新率 | |
代表指针设备 | |
用于获取屏幕显示时序的扩展 | |
提供对合成器中输入方法的访问权限 | |
Qt Quick 代表 QWaylandView 的项目 | |
为与 QtQuick 的外壳表面集成提供支持 | |
Qt Quick 代表 QWaylandShellSurface 的项目 | |
wl_resource 的容器 | |
访问键盘、鼠标和触摸输入 | |
为外壳扩展指定的表面角色提供通用接口 | |
创建自定义外壳表面类的便利类 | |
代表输出设备上的矩形区域 | |
允许读取 QWaylandSurface 的内容 | |
代表曲面在 wl_surface 上下文中的角色 | |
可访问合成器中的输入方法 | |
访问触摸设备 | |
代表曲面在输出端上的视图 | |
提供曲面大小调整和裁剪的扩展功能 | |
桌面风格用户界面的扩展 | |
为曲面提供桌面风格合成器的特定功能 | |
为协商服务器端和客户端窗口装饰提供扩展功能 | |
提供以桌面方式描述输出的扩展功能 | |
代表 xdg 表面的弹出式特定部分 | |
桌面风格用户界面扩展 | |
为 xdg 表面提供桌面风格合成器特定功能 | |
代表 xdg 表面的顶层窗口特定部分 |
详细说明
使用模块
使用 Qt 模块的 C++ API 需要直接或通过其他依赖项链接模块库。有几种构建工具为此提供了专门支持,包括CMake和qmake。
使用 CMake 构建
使用find_package()
命令在Qt6
软件包中找到所需的模块组件:
find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
更多详情,请参阅使用 CMake 构建概述。
使用 qmake 构建
要配置模块以便用 qmake 构建,可在项目的 .pro 文件中将模块添加为QT
变量的值:
QT += waylandcompositor
有关在应用程序中使用这些类的更多信息,请参阅 Qt Wayland Compositor文档。
© 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.