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

com.yandex.div.dsl.model.DivShadow.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 DivShadow internal constructor(
    @JsonIgnore val alpha: Property?,
    @JsonIgnore val blur: Property?,
    @JsonIgnore val color: Property?,
    @JsonIgnore val offset: Property?,
) {

    @JsonAnyGetter
    internal fun properties(): Map {
        return propertyMapOf(
            "alpha" to alpha,
            "blur" to blur,
            "color" to color,
            "offset" to offset,
        )
    }
}

fun  TemplateContext.divShadow(): LiteralProperty {
    return value(DivShadow(
        alpha = null,
        blur = null,
        color = null,
        offset = null,
    ))
}

fun  TemplateContext.divShadow(
    offset: Property? = null,
    alpha: Property? = null,
    blur: Property? = null,
    color: Property? = null,
): LiteralProperty {
    return value(DivShadow(
        alpha = alpha,
        blur = blur,
        color = color,
        offset = offset,
    ))
}

fun  TemplateContext.divShadow(
    offset: DivPoint? = null,
    alpha: Double? = null,
    blur: Int? = null,
    color: Color? = null,
): LiteralProperty {
    return value(DivShadow(
        alpha = optionalValue(alpha),
        blur = optionalValue(blur),
        color = optionalValue(color),
        offset = optionalValue(offset),
    ))
}

fun CardContext.divShadow(
    offset: ValueProperty,
    alpha: ValueProperty? = null,
    blur: ValueProperty? = null,
    color: ValueProperty? = null,
): DivShadow {
    return DivShadow(
        alpha = alpha,
        blur = blur,
        color = color,
        offset = offset,
    )
}

fun CardContext.divShadow(
    offset: DivPoint,
    alpha: Double? = null,
    blur: Int? = null,
    color: Color? = null,
): DivShadow {
    return DivShadow(
        alpha = optionalValue(alpha),
        blur = optionalValue(blur),
        color = optionalValue(color),
        offset = value(offset),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy