[][src]Struct wayland_protocols::wlr::unstable::layer_shell::v1::client::zwlr_layer_shell_v1::ZwlrLayerShellV1

pub struct ZwlrLayerShellV1(_);

Implementations

impl ZwlrLayerShellV1[src]

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

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.

Trait Implementations

impl AsRef<Proxy<ZwlrLayerShellV1>> for ZwlrLayerShellV1[src]

impl Clone for ZwlrLayerShellV1[src]

impl Eq for ZwlrLayerShellV1[src]

impl From<Proxy<ZwlrLayerShellV1>> for ZwlrLayerShellV1[src]

impl From<ZwlrLayerShellV1> for Proxy<ZwlrLayerShellV1>[src]

impl<T: EventHandler> HandledBy<T> for ZwlrLayerShellV1[src]

impl Interface for ZwlrLayerShellV1[src]

type Request = Request

Set of requests associated to this interface Read more

type Event = Event

Set of events associated to this interface Read more

impl PartialEq<ZwlrLayerShellV1> for ZwlrLayerShellV1[src]

impl StructuralEq for ZwlrLayerShellV1[src]

impl StructuralPartialEq for ZwlrLayerShellV1[src]

Auto Trait Implementations

impl !RefUnwindSafe for ZwlrLayerShellV1

impl Send for ZwlrLayerShellV1

impl Sync for ZwlrLayerShellV1

impl Unpin for ZwlrLayerShellV1

impl !UnwindSafe for ZwlrLayerShellV1

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<M, I> HandledBy<Sink<M>> for I where
    I: Interface,
    M: From<(<I as Interface>::Event, I)>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.