wp_alpha_modifier_v1¤
wayland.wp_alpha_modifier_v1 ¤
Surface alpha modifier manager
This interface allows a client to set a factor for the alpha values on a surface, which can be used to offload such operations to the compositor, which can in turn for example offload them to KMS.
Warning! The protocol described in this file is currently in the testing phase. Backward compatible changes may be added together with the corresponding interface version bump. Backward incompatible changes can only be done by creating a new major version of the extension.
Methods:
-
destroy
–Destroy the alpha modifier manager object
-
get_surface
–Create a new alpha modifier surface object
error ¤
-
already_constructed
–`wl_surface` already has a alpha modifier object
destroy ¤
destroy() -> None
Destroy the alpha modifier manager object
Destroy the alpha modifier manager. This doesn't destroy objects created with the manager.
get_surface ¤
get_surface(surface: wl_surface) -> wp_alpha_modifier_surface_v1
Create a new alpha modifier surface object
Create a new alpha modifier surface object associated with the given wl_surface. If there is already such an object associated with the wl_surface, the already_constructed error will be raised.
Returns:
-
wp_alpha_modifier_surface_v1
(wp_alpha_modifier_surface_v1
) –The created object