getCenterX

abstract fun getCenterX(): Int

获取矩形中心点的x坐标。 计算方式为 left + width / 2

Return

中心点的x坐标值。

See also

androidx.compose.ui.unit.IntRect.center