toRect Source set: Common fun MutableRect.toRect(): Rect toRect Source set: Common fun Size.toRect(): Rect Convert a Size to a Rect.