Skip to content

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:

error ¤

Protocol errors

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:

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:

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 ¤

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:

on_supported_alpha_mode ¤

on_supported_alpha_mode(alpha_mode: alpha_mode) -> None

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.