Skip to main content

Layout

Trait Layout 

Source
pub trait Layout {
    // Required method
    fn layout(
        &self,
        widgets: &mut [Box<dyn Widget>],
        bounds: Rect,
        constraints: &[LayoutConstraints],
    );
}
Expand description

Trait for layout algorithms

Required Methods§

Source

fn layout( &self, widgets: &mut [Box<dyn Widget>], bounds: Rect, constraints: &[LayoutConstraints], )

Calculate layout for a list of widgets within given bounds

Implementors§