wp_color_representation_manager_v1¤
wayland.wp_color_representation_manager_v1 ¤
Color representation manager singleton
A singleton global interface used for getting color representation extensions for wl_surface. The extension interfaces allow setting the color representation of surfaces.
Compositors should never remove this global.
Methods:
-
destroy
–Destroy the manager
-
get_surface
–Create a color representation interface for a
wl_surface
-
on_supported_alpha_mode
–Supported alpha modes.
-
on_supported_coefficients_and_ranges
–Supported matrix coefficients and ranges.
-
on_done
–All features have been sent.
error ¤
Protocol errors
-
surface_exists
–Color representation surface exists already
events
supported_alpha_mode ¤
supported_alpha_mode(alpha_mode: alpha_mode) -> None
Supported alpha modes
When this object is created, it shall immediately send this event once for each alpha mode the compositor supports.
For the definition of the supported values, see the wp_color_representation_surface_v1::alpha_mode enum.
Parameters:
-
alpha_mode
¤alpha_mode
) –Supported alpha mode
supported_coefficients_and_ranges ¤
supported_coefficients_and_ranges(coefficients: coefficients, range: range) -> None
Supported matrix coefficients and ranges
When this object is created, it shall immediately send this event once for each matrix coefficient and color range combination the compositor supports.
For the definition of the supported values, see the wp_color_representation_surface_v1::coefficients and wp_color_representation_surface_v1::range enums.
Parameters:
-
coefficients
¤coefficients
) –Supported matrix coefficients
-
range
¤range
) –Full range flag
done ¤
done() -> None
All features have been sent
This event is sent when all supported features have been sent.
destroy ¤
destroy() -> None
Destroy the manager
Destroy the wp_color_representation_manager_v1 object. This does not affect any other objects in any way.
get_surface ¤
get_surface(surface: wl_surface) -> wp_color_representation_surface_v1
Create a color representation interface for a wl_surface
If a wp_color_representation_surface_v1 object already exists for the given wl_surface, the protocol error surface_exists is raised.
This creates a new color wp_color_representation_surface_v1 object for the given wl_surface.
See the wp_color_representation_surface_v1 interface for more details.
Returns:
-
wp_color_representation_surface_v1
(wp_color_representation_surface_v1
) –The created object
on_supported_alpha_mode ¤
on_supported_alpha_mode(alpha_mode: alpha_mode) -> None
Supported alpha modes.
Override to handle wayland.wp_color_representation_manager_v1.events.supported_alpha_mode
.
on_supported_coefficients_and_ranges ¤
on_supported_coefficients_and_ranges(coefficients: coefficients, range: range) -> None
Supported matrix coefficients and ranges.
Override to handle wayland.wp_color_representation_manager_v1.events.supported_coefficients_and_ranges
.
on_done ¤
on_done() -> None
All features have been sent.
Override to handle wayland.wp_color_representation_manager_v1.events.done
.