kvision / pl.treksoft.kvision.core / TextDecoration

TextDecoration

class TextDecoration

Type-safe definition of CSS text decoration.

Constructors

<init>

TextDecoration(line: TextDecorationLine? = null, style: TextDecorationStyle? = null)

Creates CSS text decoration with given line and style.

TextDecoration(line: TextDecorationLine? = null, style: TextDecorationStyle? = null, color: Int)

Creates CSS text decoration with given line, style and color given in hex format.

TextDecoration(line: TextDecorationLine? = null, style: TextDecorationStyle? = null, color: Col)

Creates CSS text decoration with given line, style and color given with named constant.

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.