Skip to main content

fitted_size

Function fitted_size 

Source
pub fn fitted_size(width: u32, height: u32) -> Option<(u32, u32)>
Expand description

Returns the size that fits the limits of the API, with the same aspect ratio.

Returns None when no scale fits both sides.