pub trait ViewportSize<T>where
    T: Mul<ScaleFactor, Output = f32> + Copy + 'static,
    f32: AsPrimitive<T>,
{ fn scale_viewport(self, scaling: Scale2D, viewport: Size<T>) -> Size<T>; }

Required Methods§

Produce a Size<T> scaled with the input scaling options.

Implementations on Foreign Types§

Implementors§