toRect

abstract fun toRect(): Rect

Converts this Size to a Rect using Position.zero.

abstract fun toRect(position: Position): Rect

Converts this Size to a Rect with the given Position.