Size

data class Size(val value: Double, val unit: Size.Unit) : RenderRepresentable

A numeric size with a unit, which represents a generic size (e.g. margin, length, font size).

Constructors

Link copied to clipboard
constructor(value: Double, unit: Size.Unit)

Types

Link copied to clipboard

Unit of a Size.

Properties

Link copied to clipboard

Converts a RenderRepresentable to its CSS representation.

Link copied to clipboard
Link copied to clipboard

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.

Link copied to clipboard
infix fun Size.by(height: Size): BoundingBox

Shorthand for creating a BoundingBox from two Sizes.

Link copied to clipboard
open override fun toString(): String