Sizes

class Sizes(normal: Property, small: Property, smaller: Property, tiny: Property, large: Property, larger: Property, huge: Property, giant: Property, full: Property, wide: ScaledValue) : ScaledValue

Defines a value that has different expressions for different sizes.

There is a special sub-range for "bigger" sizes called `wide`. "Bigger" really means sizes that reach dimensions up to the whole screen and have to scale much different (much wider steps obviously) than the basic ones.

We believe that in most of the cases one would like to define rather small sizes, ranging between a fraction of an `rem` and at most `2rem`. This is why those are intentionally the basic properties of this type and the more wider scaled ones need the `wide` "prefix"!

Constructors

Sizes
Link copied to clipboard
fun Sizes(normal: Property, small: Property = normal, smaller: Property = small, tiny: Property = smaller, large: Property = normal, larger: Property = large, huge: Property = larger, giant: Property = huge, full: Property = giant, wide: ScaledValue)

Functions

fitContent
Link copied to clipboard
fun fitContent(value: Property): Property

Properties

auto
Link copied to clipboard
val auto: Property
available
Link copied to clipboard
val available: Property
borderBox
Link copied to clipboard
val borderBox: Property
contentBox
Link copied to clipboard
val contentBox: Property
full
Link copied to clipboard
val full: Property
giant
Link copied to clipboard
val giant: Property
huge
Link copied to clipboard
val huge: Property
inherit
Link copied to clipboard
val inherit: Property
initial
Link copied to clipboard
val initial: Property
large
Link copied to clipboard
val large: Property
larger
Link copied to clipboard
val larger: Property
maxContent
Link copied to clipboard
val maxContent: Property
minContent
Link copied to clipboard
val minContent: Property
none
Link copied to clipboard
open val none: Property
normal
Link copied to clipboard
val normal: Property
small
Link copied to clipboard
val small: Property
smaller
Link copied to clipboard
val smaller: Property
tiny
Link copied to clipboard
val tiny: Property
unset
Link copied to clipboard
val unset: Property
wide
Link copied to clipboard
val wide: ScaledValue