IntSize

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

封装 Jetpack Compose 的 androidx.compose.ui.unit.IntSize,表示一个使用整型(Int)像素为单位的二维尺寸。

这个接口通常用于定义UI元素在屏幕上的精确宽度和高度。

Author

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

See also

androidx.compose.ui.unit.IntSize

Functions

Link copied to clipboard
abstract fun getHeight(): Int

获取尺寸的高度。

Link copied to clipboard
abstract fun getWidth(): Int

获取尺寸的宽度。

Link copied to clipboard
abstract fun setHeight(height: Int)

设置尺寸的高度。

Link copied to clipboard
abstract fun setWidth(width: Int)

设置尺寸的宽度。