WindowInsets

interface WindowInsets : ComposableProperties<WindowInsets>

表示窗口边衬区,即被系统UI(如状态栏、导航栏)占用的空间。

此接口是对 Jetpack Compose androidx.compose.foundation.layout.WindowInsets 的抽象封装。

Author

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

Functions

Link copied to clipboard
abstract fun getBottom(density: Density): Int

获取底部边衬区的像素值。

Link copied to clipboard
abstract fun getLeft(density: Density, layoutDirection: LayoutDirection): Int

获取左侧边衬区的像素值。

Link copied to clipboard
abstract fun getRight(density: Density, layoutDirection: LayoutDirection): Int

获取右侧边衬区的像素值。

Link copied to clipboard
abstract fun getTop(density: Density): Int

获取顶部边衬区的像素值。