Struct wayland_protocols::wlr::unstable::layer_shell::v1::client::zwlr_layer_shell_v1::ZwlrLayerShellV1
source · pub struct ZwlrLayerShellV1(/* private fields */);
Implementations§
source§impl ZwlrLayerShellV1
impl ZwlrLayerShellV1
sourcepub fn get_layer_surface(
&self,
surface: &WlSurface,
output: Option<&WlOutput>,
layer: Layer,
namespace: String
) -> Main<ZwlrLayerSurfaceV1>
pub fn get_layer_surface( &self, surface: &WlSurface, output: Option<&WlOutput>, layer: Layer, namespace: String ) -> Main<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.
After creating a layer_surface object and setting it up, the client must perform an initial commit without any buffer attached. The compositor will reply with a layer_surface.configure event. The client must acknowledge it and is then allowed to attach a buffer to map the surface.
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.
sourcepub fn destroy(&self)
pub fn destroy(&self)
destroy the layer_shell object
This request indicates that the client will not use the layer_shell object any more. Objects that have been created through this instance are not affected.
This is a destructor, you cannot send requests to this object any longer once this method is called. Only available since version 3 of the interface.
Trait Implementations§
source§impl AsRef<Proxy<ZwlrLayerShellV1>> for ZwlrLayerShellV1
impl AsRef<Proxy<ZwlrLayerShellV1>> for ZwlrLayerShellV1
source§impl Clone for ZwlrLayerShellV1
impl Clone for ZwlrLayerShellV1
source§fn clone(&self) -> ZwlrLayerShellV1
fn clone(&self) -> ZwlrLayerShellV1
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ZwlrLayerShellV1
impl Debug for ZwlrLayerShellV1
source§impl From<Proxy<ZwlrLayerShellV1>> for ZwlrLayerShellV1
impl From<Proxy<ZwlrLayerShellV1>> for ZwlrLayerShellV1
source§impl From<ZwlrLayerShellV1> for Proxy<ZwlrLayerShellV1>
impl From<ZwlrLayerShellV1> for Proxy<ZwlrLayerShellV1>
source§fn from(value: ZwlrLayerShellV1) -> Self
fn from(value: ZwlrLayerShellV1) -> Self
source§impl Interface for ZwlrLayerShellV1
impl Interface for ZwlrLayerShellV1
source§fn c_interface() -> *const wl_interface
fn c_interface() -> *const wl_interface
source§impl PartialEq for ZwlrLayerShellV1
impl PartialEq for ZwlrLayerShellV1
source§fn eq(&self, other: &ZwlrLayerShellV1) -> bool
fn eq(&self, other: &ZwlrLayerShellV1) -> bool
self
and other
values to be equal, and is used
by ==
.