[][src]Trait wayland_server::protocol::wl_subcompositor::RequestHandler

pub trait RequestHandler {
    fn destroy(&mut self, object: WlSubcompositor) { ... }
fn get_subsurface(
        &mut self,
        object: WlSubcompositor,
        id: NewResource<WlSubsurface>,
        surface: WlSurface,
        parent: WlSurface
    ) { ... } }

An interface for handling requests.

Provided methods

fn destroy(&mut self, object: WlSubcompositor)

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(
    &mut self,
    object: WlSubcompositor,
    id: NewResource<WlSubsurface>,
    surface: WlSurface,
    parent: WlSurface
)

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.

Adding sub-surfaces to a parent is a double-buffered operation on the parent (see wl_surface.commit). The effect of adding a sub-surface becomes visible on the next time the state of the parent surface is applied.

This request modifies the behaviour of wl_surface.commit request on the sub-surface, see the documentation on wl_subsurface interface.

Loading content...

Implementors

Loading content...