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

com.yandex.div.dsl.model.DivEdgeInsets.kt Maven / Gradle / Ivy

Go to download

DivKit is an open source Server-Driven UI (SDUI) framework. SDUI is a an emerging technique that leverage the server to build the user interfaces of their mobile app.

There is a newer version: 30.28.0
Show newest version
// Generated code. Do not modify.

package com.yandex.div.dsl.model

import java.net.URI
import com.fasterxml.jackson.annotation.*
import com.yandex.div.dsl.*
import com.yandex.div.dsl.context.*
import com.yandex.div.dsl.type.*
import com.yandex.div.dsl.util.*

class DivEdgeInsets internal constructor(
    @JsonIgnore val bottom: Property?,
    @JsonIgnore val left: Property?,
    @JsonIgnore val right: Property?,
    @JsonIgnore val top: Property?,
    @JsonIgnore val unit: Property?,
) {

    @JsonAnyGetter
    internal fun properties(): Map {
        return propertyMapOf(
            "bottom" to bottom,
            "left" to left,
            "right" to right,
            "top" to top,
            "unit" to unit,
        )
    }
}

fun  TemplateContext.divEdgeInsets(): LiteralProperty {
    return value(DivEdgeInsets(
        bottom = null,
        left = null,
        right = null,
        top = null,
        unit = null,
    ))
}

fun  TemplateContext.divEdgeInsets(
    bottom: Property? = null,
    left: Property? = null,
    right: Property? = null,
    top: Property? = null,
    unit: Property? = null,
): LiteralProperty {
    return value(DivEdgeInsets(
        bottom = bottom,
        left = left,
        right = right,
        top = top,
        unit = unit,
    ))
}

fun  TemplateContext.divEdgeInsets(
    bottom: Int? = null,
    left: Int? = null,
    right: Int? = null,
    top: Int? = null,
    unit: DivSizeUnit? = null,
): LiteralProperty {
    return value(DivEdgeInsets(
        bottom = optionalValue(bottom),
        left = optionalValue(left),
        right = optionalValue(right),
        top = optionalValue(top),
        unit = optionalValue(unit),
    ))
}

fun CardContext.divEdgeInsets(): DivEdgeInsets {
    return DivEdgeInsets(
        bottom = null,
        left = null,
        right = null,
        top = null,
        unit = null,
    )
}

fun CardContext.divEdgeInsets(
    bottom: ValueProperty? = null,
    left: ValueProperty? = null,
    right: ValueProperty? = null,
    top: ValueProperty? = null,
    unit: ValueProperty? = null,
): DivEdgeInsets {
    return DivEdgeInsets(
        bottom = bottom,
        left = left,
        right = right,
        top = top,
        unit = unit,
    )
}

fun CardContext.divEdgeInsets(
    bottom: Int? = null,
    left: Int? = null,
    right: Int? = null,
    top: Int? = null,
    unit: DivSizeUnit? = null,
): DivEdgeInsets {
    return DivEdgeInsets(
        bottom = optionalValue(bottom),
        left = optionalValue(left),
        right = optionalValue(right),
        top = optionalValue(top),
        unit = optionalValue(unit),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy