[][src]Trait wayland_protocols::wlr::unstable::layer_shell::v1::client::zwlr_layer_shell_v1::RequestsTrait

pub trait RequestsTrait {
    fn get_layer_surface<F>(
        &self,
        surface: &Proxy<WlSurface>,
        output: Option<&Proxy<WlOutput>>,
        layer: Layer,
        namespace: String,
        implementor: F
    ) -> Result<Proxy<ZwlrLayerSurfaceV1>, ()>
    where
        F: FnOnce(NewProxy<ZwlrLayerSurfaceV1>) -> Proxy<ZwlrLayerSurfaceV1>
; }

Required methods

fn get_layer_surface<F>(
    &self,
    surface: &Proxy<WlSurface>,
    output: Option<&Proxy<WlOutput>>,
    layer: Layer,
    namespace: String,
    implementor: F
) -> Result<Proxy<ZwlrLayerSurfaceV1>, ()> where
    F: FnOnce(NewProxy<ZwlrLayerSurfaceV1>) -> Proxy<ZwlrLayerSurfaceV1>, 

create a layer_surface from a surface

Create a layer surface for an existing surface. This assigns the role of layer_surface, or raises a protocol error if another role is already assigned.

Creating a layer surface from a wl_surface which has a buffer attached or committed is a client error, and any attempts by a client to attach or manipulate a buffer prior to the first layer_surface.configure call must also be treated as errors.

You may pass NULL for output to allow the compositor to decide which output to use. Generally this will be the one that the user most recently interacted with.

Clients can specify a namespace that defines the purpose of the layer surface.

Loading content...

Implementations on Foreign Types

impl RequestsTrait for Proxy<ZwlrLayerShellV1>[src]

Loading content...

Implementors

Loading content...