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

com.yandex.div.dsl.model.DivAbsoluteEdgeInsets.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.19.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 DivAbsoluteEdgeInsets internal constructor(
    @JsonIgnore val bottom: Property?,
    @JsonIgnore val left: Property?,
    @JsonIgnore val right: Property?,
    @JsonIgnore val top: Property?,
) {

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

fun  TemplateContext.divAbsoluteEdgeInsets(): LiteralProperty {
    return value(DivAbsoluteEdgeInsets(
        bottom = null,
        left = null,
        right = null,
        top = null,
    ))
}

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

fun  TemplateContext.divAbsoluteEdgeInsets(
    bottom: Int? = null,
    left: Int? = null,
    right: Int? = null,
    top: Int? = null,
): LiteralProperty {
    return value(DivAbsoluteEdgeInsets(
        bottom = optionalValue(bottom),
        left = optionalValue(left),
        right = optionalValue(right),
        top = optionalValue(top),
    ))
}

fun CardContext.divAbsoluteEdgeInsets(): DivAbsoluteEdgeInsets {
    return DivAbsoluteEdgeInsets(
        bottom = null,
        left = null,
        right = null,
        top = null,
    )
}

fun CardContext.divAbsoluteEdgeInsets(
    bottom: ValueProperty? = null,
    left: ValueProperty? = null,
    right: ValueProperty? = null,
    top: ValueProperty? = null,
): DivAbsoluteEdgeInsets {
    return DivAbsoluteEdgeInsets(
        bottom = bottom,
        left = left,
        right = right,
        top = top,
    )
}

fun CardContext.divAbsoluteEdgeInsets(
    bottom: Int? = null,
    left: Int? = null,
    right: Int? = null,
    top: Int? = null,
): DivAbsoluteEdgeInsets {
    return DivAbsoluteEdgeInsets(
        bottom = optionalValue(bottom),
        left = optionalValue(left),
        right = optionalValue(right),
        top = optionalValue(top),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy