aboutsummaryrefslogtreecommitdiff
path: root/api/pl.treksoft.kvision.core/-background/index.html
blob: 2164e33622d705495d7671456fbc4f11bb38eb80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<HTML>
<HEAD>
<meta charset="UTF-8">
<title>Background - kvision</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">kvision</a>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.core</a>&nbsp;/&nbsp;<a href="./index.html">Background</a><br/>
<br/>
<h1>Background</h1>
(js) <code><span class="keyword">class </span><span class="identifier">Background</span></code>
<p>Type-safe definition of CSS background.</p>
<h3>Parameters</h3>
<p><a name="color"></a>
<code>color</code> - color of the background</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>
<h3>Constructors</h3>
<table>
<tbody>
<tr>
<td>
(js) 
<h4><a href="-init-.html">&lt;init&gt;</a></h4>
</td>
<td>
<p>Type-safe definition of CSS background.</p>
<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.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, 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>&nbsp;<a href="../-color/index.html"><span class="identifier">Color</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;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.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, 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>&nbsp;<a href="../-res-string.html"><span class="identifier">ResString</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;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.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, 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>&nbsp;<a href="../-css-size.html"><span class="identifier">CssSize</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;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.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, 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>&nbsp;<a href="../-css-size.html"><span class="identifier">CssSize</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;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.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, 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>&nbsp;<a href="../-css-size.html"><span class="identifier">CssSize</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;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.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, 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>&nbsp;<a href="../-css-size.html"><span class="identifier">CssSize</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;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.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, 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>&nbsp;<a href="../-bg-size/index.html"><span class="identifier">BgSize</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;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.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, 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>&nbsp;<a href="../-bg-repeat/index.html"><span class="identifier">BgRepeat</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;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.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, 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>&nbsp;<a href="../-bg-origin/index.html"><span class="identifier">BgOrigin</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;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.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, 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>&nbsp;<a href="../-bg-clip/index.html"><span class="identifier">BgClip</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;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.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, pl.treksoft.kvision.core.UNIT)), kotlin.Pair((kotlin.Number, 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>&nbsp;<a href="../-bg-attach/index.html"><span class="identifier">BgAttach</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">)</span></code></td>
</tr>
</tbody>
</table>
<h3>Functions</h3>
<table>
<tbody>
<tr>
<td>
(js) 
<h4><a href="to-string.html">toString</a></h4>
</td>
<td>
<code><span class="keyword">fun </span><span class="identifier">toString</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code></td>
</tr>
</tbody>
</table>
</BODY>
</HTML>