Trait cognitive_qualia::surface::SurfaceControl [] [src]

pub trait SurfaceControl {
    fn show_surface(&self, sid: SurfaceId, reason: ShowReason);
    fn dock_surface(&self, sid: SurfaceId, size: Size, display_id: i32);
    fn hide_surface(&self, sid: SurfaceId, reason: ShowReason);
    fn set_surface_offset(&self, sid: SurfaceId, offset: Vector);
    fn set_surface_requested_size(&self, sid: SurfaceId, size: Size);
    fn set_surface_relative_position(&self, sid: SurfaceId, offset: Vector);
    fn relate_surfaces(&self, sid: SurfaceId, parent_sid: SurfaceId);
    fn unrelate_surface(&self, sid: SurfaceId);
}

Controlling surfaces parameters like size, position and relationships.

Required Methods

Adds given show reason flag to set of surfaces show reason.

Docks given surface.

Subtracts given show reason flag from set of surfaces show reason.

Sets position offset given surface.

Sets requested size for given surface.

Sets satellite surface position relative to its parent.

Relates two surfaces.

Unrelates two surfaces.

Implementors