Trait cognitive_qualia::surface::SurfaceManagement [] [src]

pub trait SurfaceManagement {
    fn create_surface(&mut self) -> SurfaceId;
    fn attach_shm(&self, mvid: MemoryViewId, sid: SurfaceId);
    fn attach_egl_image(&self, eiid: EglImageId, sid: SurfaceId);
    fn attach_dmabuf(&self, dmid: DmabufId, sid: SurfaceId);
    fn detach_surface(&self, sid: SurfaceId);
    fn commit_surface(&self, sid: SurfaceId);
    fn destroy_surface(&self, sid: SurfaceId);
}

Managing surface content.

Required Methods

Creates new surface with newly generated unique ID.

Sets given buffer as pending for given surface.

Sets given hardware image as pending for given surface.

Sets given dmabuf as pending for given surface.

Informs other parts of application the surface is now not visible.

Commits the surface.

Detaches and forgets given surface.

Implementors