Package-level declarations

Types

Link copied to clipboard
data class UiDensity(val density: Float, val fontScale: Float)

Density used at the renderer boundary.

Link copied to clipboard
sealed interface UiDimension

Selects how a renderer resolves one layout dimension.

Link copied to clipboard
value class UiDp(val value: Float) : Comparable<UiDp>

Density-independent layout distance.

Link copied to clipboard
value class UiSp(val value: Float) : Comparable<UiSp>

Scale-independent text size.

Properties

Link copied to clipboard

Converts this floating-point value to a density-independent distance.

val Int.dp: UiDp

Converts this integer to a density-independent distance without applying device density.

Link copied to clipboard

Converts this floating-point value to a scale-independent text size.

val Int.sp: UiSp

Converts this integer to a scale-independent text size without applying font scale.