<HTML> <HEAD> <meta charset="UTF-8"> <title>Background.<init> - kvision</title> <link rel="stylesheet" href="../../../style.css"> </HEAD> <BODY> <a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.core</a> / <a href="index.html">Background</a> / <a href="./-init-.html"><init></a><br/> <br/> <h1><init></h1> <a name="pl.treksoft.kvision.core.Background$<init>(kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)"></a> <code><span class="identifier">Background</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/image">image</span><span class="symbol">:</span> <a href="../-res-string.html"><span class="identifier">ResString</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/positionX">positionX</span><span class="symbol">:</span> <a href="../-css-size.html"><span class="identifier">CssSize</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/positionY">positionY</span><span class="symbol">:</span> <a href="../-css-size.html"><span class="identifier">CssSize</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/sizeX">sizeX</span><span class="symbol">:</span> <a href="../-css-size.html"><span class="identifier">CssSize</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/sizeY">sizeY</span><span class="symbol">:</span> <a href="../-css-size.html"><span class="identifier">CssSize</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/size">size</span><span class="symbol">:</span> <a href="../-b-g-s-i-z-e/index.html"><span class="identifier">BGSIZE</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/repeat">repeat</span><span class="symbol">:</span> <a href="../-b-g-r-e-p-e-a-t/index.html"><span class="identifier">BGREPEAT</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/origin">origin</span><span class="symbol">:</span> <a href="../-b-g-o-r-i-g-i-n/index.html"><span class="identifier">BGORIGIN</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/clip">clip</span><span class="symbol">:</span> <a href="../-b-g-c-l-i-p/index.html"><span class="identifier">BGCLIP</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/attachment">attachment</span><span class="symbol">:</span> <a href="../-b-g-a-t-t-a-c-h/index.html"><span class="identifier">BGATTACH</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">)</span></code> <p>Creates CSS Background with given parameters.</p> <h3>Parameters</h3> <p><a name="image"></a> <code>image</code> - background image</p> <p><a name="positionX"></a> <code>positionX</code> - horizontal position of the background image</p> <p><a name="positionY"></a> <code>positionY</code> - vertical position of the background image</p> <p><a name="sizeX"></a> <code>sizeX</code> - horizontal size of the background image</p> <p><a name="sizeY"></a> <code>sizeY</code> - vertical size of the background image</p> <p><a name="size"></a> <code>size</code> - resize of the background image</p> <p><a name="repeat"></a> <code>repeat</code> - repeat option of the background image</p> <p><a name="origin"></a> <code>origin</code> - origin option of the background image</p> <p><a name="clip"></a> <code>clip</code> - clipping option of the background image</p> <p><a name="attachment"></a> <code>attachment</code> - attachment option of the background image</p> <a name="pl.treksoft.kvision.core.Background$<init>(kotlin.Int, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)"></a> <code><span class="identifier">Background</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.Int, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/color">color</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.Int, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/image">image</span><span class="symbol">:</span> <a href="../-res-string.html"><span class="identifier">ResString</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.Int, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/positionX">positionX</span><span class="symbol">:</span> <a href="../-css-size.html"><span class="identifier">CssSize</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.Int, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/positionY">positionY</span><span class="symbol">:</span> <a href="../-css-size.html"><span class="identifier">CssSize</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.Int, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/sizeX">sizeX</span><span class="symbol">:</span> <a href="../-css-size.html"><span class="identifier">CssSize</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.Int, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/sizeY">sizeY</span><span class="symbol">:</span> <a href="../-css-size.html"><span class="identifier">CssSize</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.Int, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/size">size</span><span class="symbol">:</span> <a href="../-b-g-s-i-z-e/index.html"><span class="identifier">BGSIZE</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.Int, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/repeat">repeat</span><span class="symbol">:</span> <a href="../-b-g-r-e-p-e-a-t/index.html"><span class="identifier">BGREPEAT</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.Int, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/origin">origin</span><span class="symbol">:</span> <a href="../-b-g-o-r-i-g-i-n/index.html"><span class="identifier">BGORIGIN</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.Int, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/clip">clip</span><span class="symbol">:</span> <a href="../-b-g-c-l-i-p/index.html"><span class="identifier">BGCLIP</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(kotlin.Int, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/attachment">attachment</span><span class="symbol">:</span> <a href="../-b-g-a-t-t-a-c-h/index.html"><span class="identifier">BGATTACH</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">)</span></code> <p>Creates CSS Background with given parameters.</p> <h3>Parameters</h3> <p><a name="color"></a> <code>color</code> - color of the background in hex format</p> <p><a name="image"></a> <code>image</code> - background image</p> <p><a name="positionX"></a> <code>positionX</code> - horizontal position of the background image</p> <p><a name="positionY"></a> <code>positionY</code> - vertical position of the background image</p> <p><a name="sizeX"></a> <code>sizeX</code> - horizontal size of the background image</p> <p><a name="sizeY"></a> <code>sizeY</code> - vertical size of the background image</p> <p><a name="size"></a> <code>size</code> - resize of the background image</p> <p><a name="repeat"></a> <code>repeat</code> - repeat option of the background image</p> <p><a name="origin"></a> <code>origin</code> - origin option of the background image</p> <p><a name="clip"></a> <code>clip</code> - clipping option of the background image</p> <p><a name="attachment"></a> <code>attachment</code> - attachment option of the background image</p> <a name="pl.treksoft.kvision.core.Background$<init>(pl.treksoft.kvision.core.COLOR, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)"></a> <code><span class="identifier">Background</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(pl.treksoft.kvision.core.COLOR, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/color">color</span><span class="symbol">:</span> <a href="../-c-o-l-o-r/index.html"><span class="identifier">COLOR</span></a><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(pl.treksoft.kvision.core.COLOR, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/image">image</span><span class="symbol">:</span> <a href="../-res-string.html"><span class="identifier">ResString</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(pl.treksoft.kvision.core.COLOR, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/positionX">positionX</span><span class="symbol">:</span> <a href="../-css-size.html"><span class="identifier">CssSize</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(pl.treksoft.kvision.core.COLOR, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/positionY">positionY</span><span class="symbol">:</span> <a href="../-css-size.html"><span class="identifier">CssSize</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(pl.treksoft.kvision.core.COLOR, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/sizeX">sizeX</span><span class="symbol">:</span> <a href="../-css-size.html"><span class="identifier">CssSize</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(pl.treksoft.kvision.core.COLOR, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/sizeY">sizeY</span><span class="symbol">:</span> <a href="../-css-size.html"><span class="identifier">CssSize</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(pl.treksoft.kvision.core.COLOR, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/size">size</span><span class="symbol">:</span> <a href="../-b-g-s-i-z-e/index.html"><span class="identifier">BGSIZE</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(pl.treksoft.kvision.core.COLOR, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/repeat">repeat</span><span class="symbol">:</span> <a href="../-b-g-r-e-p-e-a-t/index.html"><span class="identifier">BGREPEAT</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(pl.treksoft.kvision.core.COLOR, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/origin">origin</span><span class="symbol">:</span> <a href="../-b-g-o-r-i-g-i-n/index.html"><span class="identifier">BGORIGIN</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(pl.treksoft.kvision.core.COLOR, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/clip">clip</span><span class="symbol">:</span> <a href="../-b-g-c-l-i-p/index.html"><span class="identifier">BGCLIP</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Background$<init>(pl.treksoft.kvision.core.COLOR, kotlin.String, kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BGSIZE, pl.treksoft.kvision.core.BGREPEAT, pl.treksoft.kvision.core.BGORIGIN, pl.treksoft.kvision.core.BGCLIP, pl.treksoft.kvision.core.BGATTACH)/attachment">attachment</span><span class="symbol">:</span> <a href="../-b-g-a-t-t-a-c-h/index.html"><span class="identifier">BGATTACH</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">)</span></code> <p>Creates CSS Background with given parameters.</p> <h3>Parameters</h3> <p><a name="color"></a> <code>color</code> - color of the background with named constant</p> <p><a name="image"></a> <code>image</code> - background image</p> <p><a name="positionX"></a> <code>positionX</code> - horizontal position of the background image</p> <p><a name="positionY"></a> <code>positionY</code> - vertical position of the background image</p> <p><a name="sizeX"></a> <code>sizeX</code> - horizontal size of the background image</p> <p><a name="sizeY"></a> <code>sizeY</code> - vertical size of the background image</p> <p><a name="size"></a> <code>size</code> - resize of the background image</p> <p><a name="repeat"></a> <code>repeat</code> - repeat option of the background image</p> <p><a name="origin"></a> <code>origin</code> - origin option of the background image</p> <p><a name="clip"></a> <code>clip</code> - clipping option of the background image</p> <p><a name="attachment"></a> <code>attachment</code> - attachment option of the background image</p> </BODY> </HTML>