Companion

object Companion

Functions

Link copied to clipboard
fun fromNativeValue(nativeValue: <Error class: unknown class>): LengthUnit
Link copied to clipboard
fun fromPx(unit: LengthUnit, value: Double, settings: <Error class: unknown class>? = null): Double

Converts @value from pixels to @unit.

Link copied to clipboard
fun toPx(unit: LengthUnit, value: Double, settings: <Error class: unknown class>? = null): Double

Converts @value from @unit to pixels.