Enum wayland_protocols::wlr::unstable::layer_shell::v1::client::zwlr_layer_surface_v1::Event
source · #[non_exhaustive]pub enum Event {
Configure {
serial: u32,
width: u32,
height: u32,
},
Closed,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Configure
suggest a surface change
The configure event asks the client to resize its surface.
Clients should arrange their surface for the new states, and then send an ack_configure request with the serial sent in this configure event at some point before committing the new surface.
The client is free to dismiss all but the last configure event it received.
The width and height arguments specify the size of the window in surface-local coordinates.
The size is a hint, in the sense that the client is free to ignore it if it doesn’t resize, pick a smaller size (to satisfy aspect ratio or resize in steps of NxM pixels). If the client picks a smaller size and is anchored to two opposite anchors (e.g. ‘top’ and ‘bottom’), the surface will be centered on this axis.
If the width or height arguments are zero, it means the client should decide its own window dimension.
Closed
surface should be closed
The closed event is sent by the compositor when the surface will no longer be shown. The output may have been destroyed or the user may have asked for it to be removed. Further changes to the surface will be ignored. The client should destroy the resource after receiving this event, and create a new surface if they so choose.
Trait Implementations§
source§impl MessageGroup for Event
impl MessageGroup for Event
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