<HTML> <HEAD> <meta charset="UTF-8"> <title>Border - 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">Border</a><br/> <br/> <h1>Border</h1> <code><span class="keyword">class </span><span class="identifier">Border</span></code> <p>Type-safe definition of CSS border.</p> <h3>Constructors</h3> <table> <tbody> <tr> <td> <p><a href="-init-.html"><init></a></p> </td> <td> <code><span class="identifier">Border</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.core.Border$<init>(kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BORDERSTYLE)/width">width</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.Border$<init>(kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BORDERSTYLE)/style">style</span><span class="symbol">:</span> <a href="../-b-o-r-d-e-r-s-t-y-l-e/index.html"><span class="identifier">BORDERSTYLE</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">)</span></code> <p>Creates CSS Border with given width and style.</p> <code><span class="identifier">Border</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.core.Border$<init>(kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BORDERSTYLE, kotlin.Int)/width">width</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.Border$<init>(kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BORDERSTYLE, kotlin.Int)/style">style</span><span class="symbol">:</span> <a href="../-b-o-r-d-e-r-s-t-y-l-e/index.html"><span class="identifier">BORDERSTYLE</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Border$<init>(kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BORDERSTYLE, kotlin.Int)/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></code> <p>Creates CSS Border with given width, style and color given in hex format.</p> <code><span class="identifier">Border</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.core.Border$<init>(kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BORDERSTYLE, pl.treksoft.kvision.core.COLOR)/width">width</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.Border$<init>(kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BORDERSTYLE, pl.treksoft.kvision.core.COLOR)/style">style</span><span class="symbol">:</span> <a href="../-b-o-r-d-e-r-s-t-y-l-e/index.html"><span class="identifier">BORDERSTYLE</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.core.Border$<init>(kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)), pl.treksoft.kvision.core.BORDERSTYLE, pl.treksoft.kvision.core.COLOR)/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></code> <p>Creates CSS Border with given width, style and color given with named constant.</p> </td> </tr> </tbody> </table> </BODY> </HTML>