pub trait WlShellHandler: Any {
// Provided methods
fn delete_id(&mut self, slf: &Rc<WlShell>) { ... }
fn handle_get_shell_surface(
&mut self,
slf: &Rc<WlShell>,
id: &Rc<WlShellSurface>,
surface: &Rc<WlSurface>,
) { ... }
}Expand description
A message handler for WlShell proxies.
Provided Methods§
Sourcefn delete_id(&mut self, slf: &Rc<WlShell>)
fn delete_id(&mut self, slf: &Rc<WlShell>)
Event handler for wl_display.delete_id messages deleting the ID of this object.
The default handler forwards the event to the client, if any.
Sourcefn handle_get_shell_surface(
&mut self,
slf: &Rc<WlShell>,
id: &Rc<WlShellSurface>,
surface: &Rc<WlSurface>,
)
fn handle_get_shell_surface( &mut self, slf: &Rc<WlShell>, id: &Rc<WlShellSurface>, surface: &Rc<WlSurface>, )
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.
§Arguments
id: shell surface to createsurface: surface to be given the shell surface role
All borrowed proxies passed to this function are guaranteed to be immutable and non-null.