pub fn fit_to_rect(r: IntRect, bounds: IntRect) -> Option<IntRect>
Fits the current rect into the specified bounds.