aboutsummaryrefslogtreecommitdiff
path: root/api/pl.treksoft.kvision.core/-text-decoration/index.html
blob: 12793d93c00c350de5be57afbc9e1555acaaa199 (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
<HTML>
<HEAD>
<meta charset="UTF-8">
<title>TextDecoration - 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">TextDecoration</a><br/>
<br/>
<h1>TextDecoration</h1>
<code><span class="keyword">class </span><span class="identifier">TextDecoration</span></code>
<p>Type-safe definition of CSS text decoration.</p>
<h3>Constructors</h3>
<table>
<tbody>
<tr>
<td>
<p><a href="-init-.html">&lt;init&gt;</a></p>
</td>
<td>
<code><span class="identifier">TextDecoration</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.core.TextDecoration$<init>(pl.treksoft.kvision.core.TextDecorationLine, pl.treksoft.kvision.core.TextDecorationStyle)/line">line</span><span class="symbol">:</span>&nbsp;<a href="../-text-decoration-line/index.html"><span class="identifier">TextDecorationLine</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.TextDecoration$<init>(pl.treksoft.kvision.core.TextDecorationLine, pl.treksoft.kvision.core.TextDecorationStyle)/style">style</span><span class="symbol">:</span>&nbsp;<a href="../-text-decoration-style/index.html"><span class="identifier">TextDecorationStyle</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">)</span></code>
<p>Creates CSS text decoration with given line and style.</p>
<code><span class="identifier">TextDecoration</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.core.TextDecoration$<init>(pl.treksoft.kvision.core.TextDecorationLine, pl.treksoft.kvision.core.TextDecorationStyle, kotlin.Int)/line">line</span><span class="symbol">:</span>&nbsp;<a href="../-text-decoration-line/index.html"><span class="identifier">TextDecorationLine</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.TextDecoration$<init>(pl.treksoft.kvision.core.TextDecorationLine, pl.treksoft.kvision.core.TextDecorationStyle, kotlin.Int)/style">style</span><span class="symbol">:</span>&nbsp;<a href="../-text-decoration-style/index.html"><span class="identifier">TextDecorationStyle</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.TextDecoration$<init>(pl.treksoft.kvision.core.TextDecorationLine, pl.treksoft.kvision.core.TextDecorationStyle, kotlin.Int)/color">color</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">)</span></code>
<p>Creates CSS text decoration with given line, style and color given in hex format.</p>
<code><span class="identifier">TextDecoration</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.core.TextDecoration$<init>(pl.treksoft.kvision.core.TextDecorationLine, pl.treksoft.kvision.core.TextDecorationStyle, pl.treksoft.kvision.core.Col)/line">line</span><span class="symbol">:</span>&nbsp;<a href="../-text-decoration-line/index.html"><span class="identifier">TextDecorationLine</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.TextDecoration$<init>(pl.treksoft.kvision.core.TextDecorationLine, pl.treksoft.kvision.core.TextDecorationStyle, pl.treksoft.kvision.core.Col)/style">style</span><span class="symbol">:</span>&nbsp;<a href="../-text-decoration-style/index.html"><span class="identifier">TextDecorationStyle</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.TextDecoration$<init>(pl.treksoft.kvision.core.TextDecorationLine, pl.treksoft.kvision.core.TextDecorationStyle, pl.treksoft.kvision.core.Col)/color">color</span><span class="symbol">:</span>&nbsp;<a href="../-col/index.html"><span class="identifier">Col</span></a><span class="symbol">)</span></code>
<p>Creates CSS text decoration with given line, style and color given with named constant.</p>
</td>
</tr>
</tbody>
</table>
<h3>Extension Functions</h3>
<table>
<tbody>
<tr>
<td>
<p><a href="../../pl.treksoft.kvision.utils/kotlin.-any/create-instance.html">createInstance</a></p>
</td>
<td>
<code><span class="keyword">fun </span><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">&gt;</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html"><span class="identifier">Any</span></a><span class="symbol">?</span><span class="symbol">.</span><span class="identifier">createInstance</span><span class="symbol">(</span><span class="keyword">vararg</span> <span class="identifier" id="pl.treksoft.kvision.utils$createInstance(kotlin.Any, kotlin.Array((kotlin.Any)))/args">args</span><span class="symbol">:</span>&nbsp;<span class="keyword">dynamic</span><span class="symbol">)</span><span class="symbol">: </span><a href="../../pl.treksoft.kvision.utils/kotlin.-any/create-instance.html#T"><span class="identifier">T</span></a></code>
<p>Helper function for creating JavaScript objects from dynamic constructors.</p>
</td>
</tr>
</tbody>
</table>
</BODY>
</HTML>