wp_content_type_manager_v1¤
wayland.wp_content_type_manager_v1 ¤
Surface content type manager
This interface allows a client to describe the kind of content a surface will display, to allow the compositor to optimize its behavior for it.
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 content type manager object
-
get_surface_content_type
–Create a new content type object
error ¤
-
already_constructed
–`wl_surface` already has a content type object
destroy ¤
destroy() -> None
Destroy the content type manager object
Destroy the content type manager. This doesn't destroy objects created with the manager.
get_surface_content_type ¤
get_surface_content_type(surface: wl_surface) -> wp_content_type_v1
Create a new content type object
Create a new content type object associated with the given surface.
Creating a wp_content_type_v1 from a wl_surface which already has one attached is a client error: already_constructed.
Returns:
-
wp_content_type_v1
(wp_content_type_v1
) –The created object