IntOffset

interface IntOffset : ComposableProperties<IntOffset>

一个使用 Int 整数像素作为单位的二维位置。

它代表了在二维空间中的一个点或偏移量,通常用于布局和绘制操作。

Author

M8Test, [email protected], https://m8test.com

See also

androidx.compose.ui.unit.IntOffset

Functions

Link copied to clipboard
abstract fun getX(): Int

获取位置的水平分量(x 坐标),单位为像素。

Link copied to clipboard
abstract fun getY(): Int

获取位置的垂直分量(y 坐标),单位为像素。

Link copied to clipboard
abstract fun setX(x: Int)

设置位置的水平分量(x 坐标)。

Link copied to clipboard
abstract fun setY(y: Int)

设置位置的垂直分量(y 坐标)。