alacritty::display

Function window_size

Source
fn window_size(
    config: &UiConfig,
    dimensions: Dimensions,
    cell_width: f32,
    cell_height: f32,
    scale_factor: f32,
) -> PhysicalSize<u32>
Expand description

Calculate the size of the window given padding, terminal dimensions and cell size.