fit_to_rect

Function fit_to_rect 

Source
pub fn fit_to_rect(r: IntRect, bounds: IntRect) -> Option<IntRect>
Expand description

Fits the current rect into the specified bounds.