set_region(region: object<wl_region>)
参数
类型
描述
regionobject<wl_region>允许为空
set_contrast(contrast: fixed)
参数
类型
描述
contrastfixed
set_intensity(intensity: fixed)
参数
类型
描述
intensityfixed
set_saturation(saturation: fixed)
参数
类型
描述
saturationfixed
release()
释放 contrast 对象
set_frost(red: int, green: int, blue: int, alpha: int)
参数
类型
描述
redint
greenint
blueint
alphaint
使用给定颜色启用 frost 效果

启用 contrast 效果的 'frost' 变体。

'frost' 是 contrast 效果的增强版本,使用不同的颜色算法使背景同时具有更高的对比度和(外观上的)透明度。

r、g、b、a 是 0-255 的通道值,指示用于 contrast 计算的颜色。 应基于 surface 的主要背景颜色。

unset_frost()
禁用 frost 效果

合成器支持

Cage
Cage
0.2.0
COSMIC
COSMIC
1.0.0~beta.8
GameScope
GameScope
3.15.14
Hyprland
Hyprland
0.52.1
Jay
1.12.0
KWin
KWin
6.6
Labwc
Labwc
0.9.2
Louvre
Louvre
2.14.1
Mir
Mir
2.26
Muffin
Muffin
6.6.0
Mutter
Mutter
49.2
niri
niri
25.11
phoc
phoc
0.52
river
river
0.3.13
Sway
Sway
1.11
Treeland
Treeland
0.8.0
Wayfire
Wayfire
0.9.0
Weston
Weston
14.0.2
org_kde_kwin_contrast_manager
x
x
x
x
x
2
x
x
x
x
x
x
x
x
x
x
x
x

SPDX-FileCopyrightText: 2015 Martin Gräßlin SPDX-FileCopyrightText: 2015 Marco Martin

SPDX-License-Identifier: LGPL-2.1-or-later

Footer

© 2026 Wayland Explorer

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

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