Trait runa_wayland_protocols::wayland::wl_shell::v1::RequestDispatch
source · pub trait RequestDispatch<Ctx> {
type Error;
type GetShellSurfaceFut<'a>: Future<Output = Result<(), Self::Error>> + 'a
where Ctx: 'a;
// Required method
fn get_shell_surface<'a>(
ctx: &'a mut Ctx,
object_id: u32,
id: NewId,
surface: Object
) -> Self::GetShellSurfaceFut<'a>;
}
Required Associated Types§
type Error
sourcetype GetShellSurfaceFut<'a>: Future<Output = Result<(), Self::Error>> + 'a
where
Ctx: 'a
type GetShellSurfaceFut<'a>: Future<Output = Result<(), Self::Error>> + 'a where Ctx: 'a
Type of future returned by get_shell_surface
Required Methods§
sourcefn get_shell_surface<'a>(
ctx: &'a mut Ctx,
object_id: u32,
id: NewId,
surface: Object
) -> Self::GetShellSurfaceFut<'a>
fn get_shell_surface<'a>( ctx: &'a mut Ctx, object_id: u32, id: NewId, surface: Object ) -> Self::GetShellSurfaceFut<'a>
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.