Sizes

data class Sizes(val top: Size, val right: Size, val bottom: Size, val left: Size) : RenderRepresentable

A collection of generic top, right, bottom and left Sizes.

Constructors

Link copied to clipboard
constructor(all: Size)

Creates a Sizes object with the same Size for all sides.

constructor(vertical: Size, horizontal: Size)

Creates a Sizes object with the same Size for vertical (top, bottom) and horizontal (left, right) sides.

constructor(top: Size, right: Size, bottom: Size, left: Size)

Properties

Link copied to clipboard

Converts a RenderRepresentable to its CSS representation.

Link copied to clipboard
Link copied to clipboard
val left: Size
Link copied to clipboard
val right: Size
Link copied to clipboard
val top: Size

Functions

Link copied to clipboard
open override fun <T> accept(visitor: RenderRepresentableVisitor<T>): T

Accepts a visitor to produce a representation of this element suitable for the rendered document.