Pixels

value class Pixels(val px: Int) : Dimension

Represents a fixed, positive number of pixels.

Constructors

Link copied to clipboard
constructor(px: Int)

Properties

Link copied to clipboard
val px: Int

Functions

Link copied to clipboard
inline fun Dimension.pxOrElse(block: () -> Int): Int

If this is a Dimension.Pixels value, return its pixel value. Else, invoke and return the value from block.