Function

toComposeRect

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

toComposeRect

Source set: Android
public 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

Source set: Android
public 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.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: