Trait wayland_client::protocol::wl_subcompositor::RequestsTrait [] [src]

pub trait RequestsTrait {
    fn destroy(&self);
fn get_subsurface(
        &self,
        surface: &Proxy<WlSurface>,
        parent: &Proxy<WlSurface>
    ) -> Result<NewProxy<WlSubsurface>, ()>; }

Required Methods

unbind from the subcompositor interface

Informs the server that the client will not be using this protocol object anymore. This does not affect any other objects, wl_subsurface objects included.

This is a destructor, you cannot send requests to this object any longer once this method is called.

give a surface the role sub-surface

Create a sub-surface interface for the given surface, and associate it with the given parent surface. This turns a plain wl_surface into a sub-surface.

The to-be sub-surface must not already have another role, and it must not have an existing wl_subsurface object. Otherwise a protocol error is raised.

Implementors