Enum wayland_client::protocol::wl_subcompositor::Request
source · #[non_exhaustive]pub enum Request {
Destroy,
GetSubsurface {
surface: WlSurface,
parent: WlSurface,
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Destroy
unbind from the subcompositor interface
Informs the server that the client will not be using this protocol object anymore. This does not affect any other objects, wl_subsurface objects included.
This is a destructor, once sent this object cannot be used any longer.
GetSubsurface
give a surface the role sub-surface
Create a sub-surface interface for the given surface, and associate it with the given parent surface. This turns a plain wl_surface into a sub-surface.
The to-be sub-surface must not already have another role, and it must not have an existing wl_subsurface object. Otherwise a protocol error is raised.
Adding sub-surfaces to a parent is a double-buffered operation on the parent (see wl_surface.commit). The effect of adding a sub-surface becomes visible on the next time the state of the parent surface is applied.
This request modifies the behaviour of wl_surface.commit request on the sub-surface, see the documentation on wl_subsurface 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