create
since version 0
create(id new_id[org_kde_kwin_contrast], surface object[wl_surface])
Arguments
|
Name
|
Type
|
Description
|
| id |
new_id[org_kde_kwin_contrast] |
|
| surface |
object[wl_surface] |
|
unset
since version 0
unset(surface object[wl_surface])
Arguments
|
Name
|
Type
|
Description
|
| surface |
object[wl_surface] |
|
commit
since version 0
commit()
set_region
since version 0
set_region(region object[wl_region])
Arguments
|
Name
|
Type
|
Description
|
| region |
object[wl_region] |
|
set_contrast
since version 0
set_contrast(contrast fixed)
Arguments
|
Name
|
Type
|
Description
|
| contrast |
fixed |
|
set_intensity
since version 0
set_intensity(intensity fixed)
Arguments
|
Name
|
Type
|
Description
|
| intensity |
fixed |
|
set_saturation
since version 0
set_saturation(saturation fixed)
Arguments
|
Name
|
Type
|
Description
|
| saturation |
fixed |
|
release
(destructor)
since version 0
~release()
set_frost
since version 2
set_frost(red int, green int, blue int, alpha int)
enables 'frost' variant of contrast effect.
'frost' is an enhanced version of the contrast effect that
uses different colour arithmetic to get backgrounds simultaneously
higher in contrast and (apparent) transparency.
r, g, b, a are channels from 0-255, indicating a colour to use in contrast calculation.
should be based off of the "main" background colour of the surface.
Arguments
|
Name
|
Type
|
Description
|
| red |
int |
|
| green |
int |
|
| blue |
int |
|
| alpha |
int |
|
unset_frost
since version 2
unset_frost()
SPDX-FileCopyrightText: 2015 Martin Gräßlin
SPDX-FileCopyrightText: 2015 Marco Martin
SPDX-License-Identifier: LGPL-2.1-or-later