Skip to main content

snapped_window_size

Function snapped_window_size 

Source
pub(crate) fn snapped_window_size(
    width: f64,
    available: (f64, f64),
) -> (f64, f64)
Expand description

The size with the default aspect ratio for a window width wide, at least the minimum height, and shrunk to fit available.