toComposeRect

Function

Android
fun android.graphics.Rect.toComposeRect(): androidx.compose.ui.geometry.Rect

Creates a new instance of androidx.compose.ui.geometry.Rect with the same bounds specified in the given android.graphics.Rect

Android
fun android.graphics.RectF.toComposeRect(): Rect

Creates a new instance of androidx.compose.ui.geometry.Rect with the same bounds specified in the given android.graphics.RectF.