kvision / pl.treksoft.kvision.core / Background

Background

class Background

Type-safe definition of CSS background.

Parameters

color - color of the background

image - background image

positionX - horizontal position of the background image

positionY - vertical position of the background image

sizeX - horizontal size of the background image

sizeY - vertical size of the background image

size - resize of the background image

repeat - repeat option of the background image

origin - origin option of the background image

clip - clipping option of the background image

attachment - attachment option of the background image

Constructors

<init>

Background(color: Color? = null, image: ResString? = null, positionX: CssSize? = null, positionY: CssSize? = null, sizeX: CssSize? = null, sizeY: CssSize? = null, size: BgSize? = null, repeat: BgRepeat? = null, origin: BgOrigin? = null, clip: BgClip? = null, attachment: BgAttach? = null)

Type-safe definition of CSS background.

Functions

toString

fun toString(): String

Extension Functions

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.