COSMIC image source

不透明的图像源对象

此协议作为屏幕捕获协议与潜在图像源(如 output 和 toplevel)之间的中介。

此协议将来可能会扩展以支持更多图像源,从而将这些图像源添加到使用图像源对象的其他协议中,而无需修改这些协议。

警告!此文件中描述的协议目前处于测试阶段。可能会添加向后兼容的更改,并相应地更新接口版本。向后不兼容的更改只能通过创建新的扩展主版本来完成。

不透明的图像源对象

图像源对象是可捕获资源的不透明描述符。此资源可以是从中派生图像的任何类型的实体。

请注意,由于 zcosmic_image_source_v1 对象是从多个独立的工厂接口创建的,因此 zcosmic_image_source_v1 接口固定在版本 1。

destroy()
销毁此对象

Destroys the image source. This request may be sent at any time by the client.


用于 output 的图像源管理器

用于为 wl_output 对象创建图像源对象的管理器。

create_source(source: new_id<zcosmic_image_source_v1>, output: object<wl_output>)
参数
类型
描述
sourcenew_id<zcosmic_image_source_v1>
outputobject<wl_output>
为 output 创建源对象

为 output 创建源对象。从此源捕获的图像将显示与 output 相同的内容。某些元素可能会被省略,例如已标记为对捕获透明的光标和覆盖层。

destroy()
销毁此对象

Destroys the manager. This request may be sent at any time by the client and objects created by the manager will remain valid after its destruction.


用于 output 的图像源管理器

用于为 wl_output 对象创建图像源对象的管理器。

为 output 创建源对象

为工作区创建源对象。从此源捕获的图像将显示与工作区相同的内容。某些元素可能会被省略,例如已标记为对捕获透明的光标和覆盖层。

destroy()
销毁此对象

Destroys the manager. This request may be sent at any time by the client and objects created by the manager will remain valid after its destruction.


用于 output 的图像源管理器

用于为 wl_output 对象创建图像源对象的管理器。

为 output 创建源对象

为工作区创建源对象。从此源捕获的图像将显示与工作区相同的内容。某些元素可能会被省略,例如已标记为对捕获透明的光标和覆盖层。

destroy()
销毁此对象

Destroys the manager. This request may be sent at any time by the client and objects created by the manager will remain valid after its destruction.


用于 toplevel 的图像源管理器

用于为 zcosmic_toplevel_handle_v1 对象创建图像源对象的管理器。

为 toplevel 创建源对象

为 toplevel 句柄创建源对象。从此源捕获的图像将显示与 toplevel 相同的内容。

destroy()
销毁此对象

Destroys the manager. This request may be sent at any time by the client and objects created by the manager will remain valid after its destruction.


合成器支持

未发现合成器支持

Copyright © 2022 Andri Yngvason Copyright © 2024 Simon Ser

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Footer

© 2026 Wayland Explorer

本网站与 Wayland 官方项目无任何关联。网站所有内容均根据 Wayland 协议 XML 文件自动生成。

本网站使用的 Visual Studio Code - Codicons 遵循 CC BY 4.0 许可。