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§

source

type Error

source

type GetShellSurfaceFut<'a>: Future<Output = Result<(), Self::Error>> + 'a where Ctx: 'a

Type of future returned by get_shell_surface

Required Methods§

source

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.

Implementors§