Skip to main content

scale_on

Function scale_on 

Source
pub fn scale_on(
    scale: Scale,
    (width, height): (u16, u16),
    space: &Size,
) -> Factor
Expand description

The scale scale gives frame (width, height) on space (the display inside its safe area): for Scale::Integer, the largest whole number that fits, which is 0 when even 1 doesn’t; for Scale::Fit, the largest factor that fits.