Skip to main content

downscale_fit_fill

Function downscale_fit_fill 

Source
pub fn downscale_fit_fill(
    source_size: PxSize,
    constraints: PxSize,
    fill: bool,
) -> Option<PxSize>
Expand description

Calculate the fit or fill size.

Returns None if the source_size is already smaller or equal to the constraints.