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

Offset

Function

Common
inline fun Offset(x: Float, y: Float) = Offset(packFloats(x, y))

Constructs an Offset from the given relative x and y offsets

    On this page
Sponsored By
by @alexstyl