kobweb
Toggle table of contents
0.21.1
js
Platform filter
js
Switch theme
Search in API
kobweb
silk-foundation
/
com.varabyte.kobweb.silk.theme.shapes
Package-level
declarations
Types
Functions
Types
Circle
Link copied to clipboard
class
Circle
(
val
radius
:
Int
=
50
,
val
center
:
Pair
<
Int
,
Int
>
=
50 to 50
)
:
Shape
Circle
F
Link copied to clipboard
class
CircleF
(
val
radius
:
Float
=
50.0f
,
val
center
:
Pair
<
Float
,
Float
>
=
50f to 50f
)
:
Shape
Circle
Path
Link copied to clipboard
class
CirclePath
(
radius
:
Float
=
50.0f
,
center
:
Pair
<
Float
,
Float
>
=
50f to 50f
)
:
Path
Inset
Path
Link copied to clipboard
class
InsetPath
(
topLeft
:
Pair
<
Float
,
Float
>
,
botRight
:
Pair
<
Float
,
Float
>
,
roundness
:
CSSLengthOrPercentageNumericValue
=
0.px
)
:
Path
Path
Link copied to clipboard
sealed
class
Path
Polygon
Link copied to clipboard
class
Polygon
(
val
points
:
Pair
<
Int
,
Int
>
)
:
Shape
Polygon
F
Link copied to clipboard
class
PolygonF
(
val
points
:
Pair
<
Float
,
Float
>
)
:
Shape
Polygon
Path
Link copied to clipboard
class
PolygonPath
(
points
:
Pair
<
Float
,
Float
>
)
:
Path
Rect
Link copied to clipboard
class
Rect
(
val
topLeft
:
Pair
<
Int
,
Int
>
,
val
botRight
:
Pair
<
Int
,
Int
>
,
val
cornerRadius
:
CSSLengthOrPercentageNumericValue
=
0.px
)
:
Shape
Rect
F
Link copied to clipboard
class
RectF
(
val
topLeft
:
Pair
<
Float
,
Float
>
,
val
botRight
:
Pair
<
Float
,
Float
>
,
val
cornerRadius
:
CSSLengthOrPercentageNumericValue
=
0.px
)
:
Shape
Create a rectangle via inset values.
Shape
Link copied to clipboard
interface
Shape
Functions
clip
Link copied to clipboard
fun
Modifier
.
clip
(
shape
:
Shape
)
:
Modifier