offset

@Stable
fun Constraints.offset(horizontal: Int = 0, vertical: Int = 0): Constraints

Returns the Constraints obtained by offsetting the current instance with the given values.


context(scope: ConstrainedScope)
fun SwingModifier.offset(x: Int = 0, y: Int = 0): SwingModifier

Moves the child by (x, y) from where it would otherwise sit, neither axis moved by default, without changing the space it measures into. A positive x moves the child toward the trailing edge: right under a left-to-right reading order and left under a right-to-left one. See absoluteOffset for an offset that always moves it toward the right.

Return

this modifier with the offset declared on it.