Skip to main content

box_size

Function box_size 

Source
pub fn box_size(size: Option<(u32, u32)>, width: f32) -> Size
Expand description

The room a video takes in a row width wide, when its note says it is size pixels, or doesn’t say: the whole width, as tall as its proportions make that, and never taller than it is wide. A video taller than that plays between bars, with its controls still in view.