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

Extensions for kotlin.Int

ch

val Int.ch: CssSize

Extension property to convert Int to CSS ch units.

cm

val Int.cm: CssSize

Extension property to convert Int to CSS cm units.

em

val Int.em: CssSize

Extension property to convert Int to CSS em units.

in

val Int.in: CssSize

Extension property to convert Int to CSS in units.

mm

val Int.mm: CssSize

Extension property to convert Int to CSS mm units.

pc

val Int.pc: CssSize

Extension property to convert Int to CSS pc units.

perc

val Int.perc: CssSize

Extension property to convert Int to CSS percent units.

pt

val Int.pt: CssSize

Extension property to convert Int to CSS pt units.

px

val Int.px: CssSize

Extension property to convert Int to CSS px units.

rem

val Int.rem: CssSize

Extension property to convert Int to CSS rem units.

toHexString

fun Int.toHexString(): String

Extension function to convert Int to hex format.

vh

val Int.vh: CssSize

Extension property to convert Int to CSS vh units.

vmax

val Int.vmax: CssSize

Extension property to convert Int to CSS vmax units.

vmin

val Int.vmin: CssSize

Extension property to convert Int to CSS vmin units.

vw

val Int.vw: CssSize

Extension property to convert Int to CSS vw units.