API reference

WindowOffset Interface

Translation offset applied to a window after anchoring.
The public factory creates offsets from discrete OffsetStep values. Other SDK surfaces may provide implementations with more precise coordinates. Use unary minus for toward-parent offsets: WindowOffset(y = -OffsetStep.Far, z = OffsetStep.Near).

Signature

@Immutable interface WindowOffset

Properties

x : OffsetStep
[Get]
Signature
abstract val x: OffsetStep
y : OffsetStep
[Get]
Signature
abstract val y: OffsetStep
z : OffsetStep
[Get]
Signature
abstract val z: OffsetStep

Methods

component1 ()
Signature
open operator fun component1(): OffsetStep
Returns
OffsetStep
component2 ()
Signature
open operator fun component2(): OffsetStep
Returns
OffsetStep
component3 ()
Signature
open operator fun component3(): OffsetStep
Returns
OffsetStep
copy ( x , y , z )
Signature
open fun copy(x: OffsetStep = this.x, y: OffsetStep = this.y, z: OffsetStep = this.z): WindowOffset
Parameters
x: OffsetStep
y: OffsetStep
z: OffsetStep
Returns
WindowOffset

Companion Object

Properties

Zero : WindowOffset
[Get]
No offset.
Signature
val Zero: WindowOffset