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
fn create_surface(&mut self) -> SurfaceId
Creates new surface with newly generated unique ID.
fn attach_shm(&self, mvid: MemoryViewId, sid: SurfaceId)
Sets given buffer as pending for given surface.
fn attach_egl_image(&self, eiid: EglImageId, sid: SurfaceId)
Sets given hardware image as pending for given surface.
fn attach_dmabuf(&self, dmid: DmabufId, sid: SurfaceId)
Sets given dmabuf as pending for given surface.
fn detach_surface(&self, sid: SurfaceId)
Informs other parts of application the surface is now not visible.
fn commit_surface(&self, sid: SurfaceId)
Commits the surface.
fn destroy_surface(&self, sid: SurfaceId)
Detaches and forgets given surface.