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

Size

Function

Common
inline fun Size(width: Float, height: Float) = Size(packFloats(width, height))

Constructs a Size from the given width and height

    On this page
Sponsored By
by @alexstyl