Dimension

sealed class Dimension

Represents either the width or height of a Size.

Types

Pixels
Link copied to clipboard
class Pixels(@Px() px: Int) : Dimension
Represents a fixed, positive number of pixels.
Undefined
Link copied to clipboard
object Undefined : Dimension
Represents an undefined pixel value.

Inheritors

Dimension
Link copied to clipboard
Dimension
Link copied to clipboard

Extensions

pxOrElse
Link copied to clipboard
inline fun Dimension.pxOrElse(block: () -> Int): Int
If this is a Dimension.Pixels value, return its pixel value.