com.yandex.div.dsl.model.DivPoint.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-json-builder Show documentation
Show all versions of kotlin-json-builder Show documentation
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.
// 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 DivPoint internal constructor(
@JsonIgnore val x: Property?,
@JsonIgnore val y: Property?,
) {
@JsonAnyGetter
internal fun properties(): Map {
return propertyMapOf(
"x" to x,
"y" to y,
)
}
}
fun TemplateContext.divPoint(): LiteralProperty {
return value(DivPoint(
x = null,
y = null,
))
}
fun TemplateContext.divPoint(
x: Property? = null,
y: Property? = null,
): LiteralProperty {
return value(DivPoint(
x = x,
y = y,
))
}
fun TemplateContext.divPoint(
x: DivDimension? = null,
y: DivDimension? = null,
): LiteralProperty {
return value(DivPoint(
x = optionalValue(x),
y = optionalValue(y),
))
}
fun CardContext.divPoint(
x: ValueProperty,
y: ValueProperty,
): DivPoint {
return DivPoint(
x = x,
y = y,
)
}
fun CardContext.divPoint(
x: DivDimension,
y: DivDimension,
): DivPoint {
return DivPoint(
x = value(x),
y = value(y),
)
}