kvision / pl.treksoft.kvision.utils / kotlin.Int

Extensions for kotlin.Int

ch

fun Int.ch(): CssSize

Extension function to convert Int to CSS ch units.

cm

fun Int.cm(): CssSize

Extension function to convert Int to CSS cm units.

em

fun Int.em(): CssSize

Extension function to convert Int to CSS em units.

in

fun Int.in(): CssSize

Extension function to convert Int to CSS in units.

mm

fun Int.mm(): CssSize

Extension function to convert Int to CSS mm units.

pc

fun Int.pc(): CssSize

Extension function to convert Int to CSS pc units.

perc

fun Int.perc(): CssSize

Extension function to convert Int to CSS percent units.

pt

fun Int.pt(): CssSize

Extension function to convert Int to CSS pt units.

px

fun Int.px(): CssSize

Extension function to convert Int to CSS px units.

rem

fun Int.rem(): CssSize

Extension function to convert Int to CSS rem units.

toHexString

fun Int.toHexString(): String

Extension function to convert Int to hex format.

vh

fun Int.vh(): CssSize

Extension function to convert Int to CSS vh units.

vmax

fun Int.vmax(): CssSize

Extension function to convert Int to CSS vmax units.

vmin

fun Int.vmin(): CssSize

Extension function to convert Int to CSS vmin units.

vw

fun Int.vw(): CssSize

Extension function to convert Int to CSS vw units.