Composables
Compose UI Geometry
🖌Compose Unstyled🆕 UI Kit
🤖Jetpack Compose API Reference
Classes
  • CornerRadius
  • MutableRect
  • Offset
  • Rect
  • RoundRect
  • Size
Properties
  • boundingRect
  • center
  • isCircle
  • isEllipse
  • isEmpty
  • isFinite
  • isRect
  • isSimple
  • isSpecified
  • isUnspecified
  • maxDimension
  • minDimension
  • safeInnerRect
Functions
  • CornerRadius
  • lerp
  • MutableRect
  • Offset
  • Rect
  • RoundRect
  • Size
  • takeOrElse
  • times
  • toRect
  • translate
Compose API Reference Compose UI Geometry

toRect

Function

Common
fun MutableRect.toRect(): Rect
Common
fun Size.toRect(): Rect

Convert a Size to a Rect.

    On this page
Sponsored By
by @alexstyl