Enum wayland_protocols::wlr::unstable::layer_shell::v1::client::zwlr_layer_shell_v1::Request
source · #[non_exhaustive]pub enum Request {
GetLayerSurface {
surface: WlSurface,
output: Option<WlOutput>,
layer: Layer,
namespace: String,
},
Destroy,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
GetLayerSurface
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.
Destroy
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, once sent this object cannot be used any longer. Only available since version 3 of the interface
Trait Implementations§
source§impl MessageGroup for Request
impl MessageGroup for Request
source§const MESSAGES: &'static [MessageDesc] = _
const MESSAGES: &'static [MessageDesc] = _
§type Map = ProxyMap
type Map = ProxyMap
source§fn is_destructor(&self) -> bool
fn is_destructor(&self) -> bool
source§fn child<Meta: ObjectMetadata>(
opcode: u16,
version: u32,
meta: &Meta
) -> Option<Object<Meta>>
fn child<Meta: ObjectMetadata>( opcode: u16, version: u32, meta: &Meta ) -> Option<Object<Meta>>
Object
associated with this message if any