freya::prelude

Trait SizeModel

pub trait SizeModel {
    // Required method
    fn with_gaps(self, gap: &Gaps) -> Size2D<f32, ()>;
}

Required Methods§

fn with_gaps(self, gap: &Gaps) -> Size2D<f32, ()>

Get the size with the given gap, e.g padding.

Implementations on Foreign Types§

§

impl SizeModel for Size2D<f32, ()>

§

fn with_gaps(self, gap: &Gaps) -> Size2D<f32, ()>

Implementors§