All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.kotlinx.css.Inset.kt Maven / Gradle / Ivy

package kotlinx.css

data class Inset(
    val top: LinearDimension,
    val right: LinearDimension,
    val bottom: LinearDimension,
    val left: LinearDimension
) : CssValue(
    getShorthandValue(top, right, bottom, left)
) {
    constructor(all: LinearDimension) : this(all, all, all, all)
    constructor(vertical: LinearDimension, horizontal: LinearDimension) : this(
        vertical,
        horizontal,
        vertical,
        horizontal
    )

    constructor(top: LinearDimension, horizontal: LinearDimension, bottom: LinearDimension) : this(
        top,
        horizontal,
        bottom,
        horizontal
    )
}

var StyledElement.inset: Inset
    @Deprecated("Write-only property", level = DeprecationLevel.HIDDEN)
    get() = error("Write-only property")
    set(value) = put("inset", value.value)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy