DpOffset
Kotlin
|Java
@Immutable inline class DpOffset
kotlin.Any | |
↳ | androidx.compose.ui.unit.DpOffset |
A two-dimensional offset using Dp for units
Summary
Public methods | |
---|---|
DpOffset |
Returns a copy of this DpOffset instance optionally overriding the x or y parameter |
operator DpOffset |
Subtract a DpOffset from another one. |
operator DpOffset |
Add a DpOffset to another one. |
String |
toString() |
Properties | |
---|---|
Dp |
The horizontal aspect of the offset in Dp |
Dp |
The vertical aspect of the offset in Dp |
Companion properties | |
---|---|
DpOffset |
Public methods
copy
fun copy(
x: Dp = this.x,
y: Dp = this.y
): DpOffset
Returns a copy of this DpOffset instance optionally overriding the x or y parameter
minus
@Stable inline operator fun minus(other: DpOffset): DpOffset
Subtract a DpOffset from another one.
toString
@Stable fun toString(): String