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
fn relax(&mut self, sa: &mut SurfaceAccess)
TODO: Implement relaxing. Currently relaxing is equivalent to homogenizing.
fn homogenize(&mut self, sa: &mut SurfaceAccess)
Make all subsurfaces have the same size and proper layout. Homogenizing works only on directed frames.
fn change_size(&mut self, vactor: Vector, sa: &mut SurfaceAccess)
Set size of the frame and resize its subframe accordingly.
fn set_size(&mut self, size: Size, sa: &mut SurfaceAccess)
Set size of the frame and resize its subframe accordingly.
fn remove_self(&mut self, sa: &mut SurfaceAccess)
Remove given frame and relax old parent.
Implementors
impl Packing for Frame