pub trait RequestsTrait {
    fn destroy(&self);
    fn get_subsurface<F>(
        &self,
        surface: &Proxy<WlSurface>,
        parent: &Proxy<WlSurface>,
        implementor: F
    ) -> Result<Proxy<WlSubsurface>, ()>
    where
        F: FnOnce(NewProxy<WlSubsurface>) -> Proxy<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