org.jetbrains.kotlinx.ggdsl.dsl.settings.kt Maven / Gradle / Ivy
package org.jetbrains.kotlinx.ggdsl.dsl
import org.jetbrains.kotlinx.ggdsl.dsl.internal.typed
import org.jetbrains.kotlinx.ggdsl.ir.bindings.NonPositionalSetting
import org.jetbrains.kotlinx.ggdsl.ir.bindings.PositionalSetting
/**
* Sets the given constant value to this non-positional aesthetic attribute.
*
* @param value the assigned value.
*/
public inline operator fun NonPositionalAes.invoke(value: T) {
context.bindingCollector.settings[this.name] = NonPositionalSetting(this.name, value.typed())
}
/**
* Sets the given constant value to this positional aesthetic attribute.
*
* @param value the assigned value.
*/
public inline operator fun PositionalAes.invoke(value: T) {
context.bindingCollector.settings[this.name] = PositionalSetting(this.name, value.typed())
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy