Function aspect_ratio

Source
pub fn aspect_ratio(
    width: impl Into<Pixels>,
    height: impl Into<Pixels>,
) -> Sizing
Expand description

Creates a new Sizing strategy that maintains the given aspect ratio.