kvision / pl.treksoft.kvision.core / Background / <init>

<init>

Background(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)

Creates CSS Background with given parameters.

Parameters

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

Background(color: Int, 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)

Creates CSS Background with given parameters.

Parameters

color - color of the background in hex format

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

Background(color: COLOR, 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)

Creates CSS Background with given parameters.

Parameters

color - color of the background with named constant

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