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

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

fn destroy(&self)

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.

fn get_subsurface<F>(
    &self,
    surface: &Proxy<WlSurface>,
    parent: &Proxy<WlSurface>,
    implementor: F
) -> Result<Proxy<WlSubsurface>, ()> where
    F: FnOnce(NewProxy<WlSubsurface>) -> Proxy<WlSubsurface>, 

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.

Loading content...

Implementors

impl RequestsTrait for Proxy<WlSubcompositor>[src]

Loading content...