pub struct WlShell { /* private fields */ }
Expand description
create desktop-style surfaces
This interface is implemented by servers that provide desktop-style user interfaces.
It allows clients to associate a wl_shell_surface with a basic surface.
Note! This protocol is deprecated and not intended for production use. For desktop-style user interfaces, use xdg_shell. Compositors and clients should not implement this interface.
See Event
for the list of possible events.
Implementations§
Source§impl WlShell
impl WlShell
Sourcepub fn get_shell_surface<D>(
self,
conn: &mut Connection<D>,
surface: WlSurface,
) -> WlShellSurface
pub fn get_shell_surface<D>( self, conn: &mut Connection<D>, surface: WlSurface, ) -> WlShellSurface
create a shell surface from a surface
Create a shell surface for an existing surface. This gives the wl_surface the role of a shell surface. If the wl_surface already has another role, it raises a protocol error.
Only one shell surface can be associated with a given surface.
Since version 1.
Sourcepub fn get_shell_surface_with_cb<D>(
self,
conn: &mut Connection<D>,
surface: WlSurface,
cb: impl FnMut(EventCtx<'_, D, WlShellSurface>) + Send + 'static,
) -> WlShellSurface
pub fn get_shell_surface_with_cb<D>( self, conn: &mut Connection<D>, surface: WlSurface, cb: impl FnMut(EventCtx<'_, D, WlShellSurface>) + Send + 'static, ) -> WlShellSurface
create a shell surface from a surface
Create a shell surface for an existing surface. This gives the wl_surface the role of a shell surface. If the wl_surface already has another role, it raises a protocol error.
Only one shell surface can be associated with a given surface.
Since version 1.