Trait cognitive_frames::Packing [] [src]

pub trait Packing {
    fn relax(&mut self, sa: &mut SurfaceAccess);
    fn homogenize(&mut self, sa: &mut SurfaceAccess);
    fn change_size(&mut self, vactor: Vector, sa: &mut SurfaceAccess);
    fn set_size(&mut self, size: Size, sa: &mut SurfaceAccess);
    fn remove_self(&mut self, sa: &mut SurfaceAccess);
}

Extension trait for Frame adding more packing functionality.

Required Methods

TODO: Implement relaxing. Currently relaxing is equivalent to homogenizing.

Make all subsurfaces have the same size and proper layout. Homogenizing works only on directed frames.

Set size of the frame and resize its subframe accordingly.

Set size of the frame and resize its subframe accordingly.

Remove given frame and relax old parent.

Implementors