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

com.yandex.div.dsl.model.DivLinearGradient.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 DivLinearGradient internal constructor(
    @JsonIgnore val angle: Property?,
    @JsonIgnore val colors: Property>?,
) : DivTextGradient, DivBackground {

    @JsonProperty("type") override val type = "gradient"

    @JsonAnyGetter
    internal fun properties(): Map {
        return propertyMapOf(
            "angle" to angle,
            "colors" to colors,
        )
    }
}

fun  TemplateContext.divLinearGradient(): LiteralProperty {
    return value(DivLinearGradient(
        angle = null,
        colors = null,
    ))
}

fun  TemplateContext.divLinearGradient(
    colors: Property>? = null,
    angle: Property? = null,
): LiteralProperty {
    return value(DivLinearGradient(
        angle = angle,
        colors = colors,
    ))
}

fun  TemplateContext.divLinearGradient(
    colors: List? = null,
    angle: Int? = null,
): LiteralProperty {
    return value(DivLinearGradient(
        angle = optionalValue(angle),
        colors = optionalValue(colors),
    ))
}

fun CardContext.divLinearGradient(
    colors: ValueProperty>,
    angle: ValueProperty? = null,
): DivLinearGradient {
    return DivLinearGradient(
        angle = angle,
        colors = colors,
    )
}

fun CardContext.divLinearGradient(
    colors: List,
    angle: Int? = null,
): DivLinearGradient {
    return DivLinearGradient(
        angle = optionalValue(angle),
        colors = value(colors),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy