Trait librashader_runtime::scaling::ViewportSize
source · pub trait ViewportSize<T>{
// Required method
fn scale_viewport(
self,
scaling: Scale2D,
viewport: Size<T>,
original: Size<T>
) -> Size<T>;
}
Expand description
Trait for size scaling relative to the viewport.