Function

toComposeRect

Creates a new instance of [androidx.

toComposeRect

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


toComposeRect

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.