ui-geometry
Functions
  • CornerRadius
  • MutableRect
  • Offset
  • Rect
  • RoundRect
  • Size
  • lerp
  • takeOrElse
  • times
  • toRect
  • translate
Classes
  • CornerRadius
  • MutableRect
  • Offset
  • Rect
  • RoundRect
  • Size
Properties
  • boundingRect
  • center
  • isCircle
  • isEllipse
  • isEmpty
  • isFinite
  • isRect
  • isSimple
  • isSpecified
  • isUnspecified
  • maxDimension
  • minDimension
  • safeInnerRect
Jetpack Compose / Compose UI / ui-geometry / Functions / Offset
Function

Offset

View Markdown Open in ChatGPT Open in Claude

Constructs an Offset from the given relative x and y offsets

CodeRabbit

CodeRabbit

AI writes the code. CodeRabbit catches the slop.

Ad Try CodeRabbit for Free

Offset

Source set: Common
@Stable public inline fun Offset(x: Float, y: Float): Offset

Constructs an Offset from the given relative x and y offsets

Content updated: 2026-10-21

MutableRect ← Previous Rect Next →

On this page

  • Offset
Reach Android developers Put your product in front of engineers building Android and KMP apps. Sponsor Composables