DpOffset

interface DpOffset : ComposableProperties<ERROR CLASS: Symbol not found for androidx.compose.ui.unit.DpOffset>

封装 Jetpack Compose 的 androidx.compose.ui.unit.DpOffset,表示一个使用 Dp 作为单位的二维偏移量。

此接口用于表示在二维空间中的一个点或位置。它包含水平(x)和垂直(y)两个分量。

See also

androidx.compose.ui.unit.DpOffset

Functions

Link copied to clipboard
abstract fun getX(): Dp

获取此偏移量的水平分量。

Link copied to clipboard
abstract fun getY(): Dp

获取此偏移量的垂直分量。