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 / translate
Function

translate

View Markdown Open in ChatGPT Open in Claude

Returns a new RoundRect translated by the given offset.

CodeRabbit

CodeRabbit

AI writes the code. CodeRabbit catches the slop.

Ad Try CodeRabbit for Free

translate

Source set: Common
public fun RoundRect.translate(offset: Offset): RoundRect

Returns a new RoundRect translated by the given offset.

Content updated: 2026-10-21

toRect ← Previous CornerRadius Next →

On this page

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