Package-level declarations

Types

Link copied to clipboard
data class BoundingBox(val width: Size, val height: Size)

A generic bounding box with a width and a height.

Link copied to clipboard
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).

Link copied to clipboard
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.

Properties

Link copied to clipboard

Represents a size expressed in centimeters.

Link copied to clipboard

Represents a size expressed in inches.

Link copied to clipboard

Represents a size expressed in millimeters.

Link copied to clipboard

Represents a size in percentage.

Link copied to clipboard
val Int.px: Size

Represents a size expressed in pixels.

Functions

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

Shorthand for creating a BoundingBox from two Sizes.