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

jvmMain.io.mths.swing.flow.binding.shorthand.JComponentBindings.kt Maven / Gradle / Ivy

The newest version!
package io.mths.swing.flow.binding.shorthand

import io.mths.swing.flow.SwingFlow
import io.mths.swing.flow.lifecycle.ParentLifecycle
import kotlinx.coroutines.CoroutineScope
import javax.swing.JComponent

context (SwingFlow, Type)
fun  bind(
    init: suspend CoroutineScope.() -> Unit
) {
    [email protected](lifecycle = ParentLifecycle(), init)
}

infix fun  Type.binds(
    init: context (CoroutineScope) Type.() -> Unit
) = binds(lifecycle = ParentLifecycle(), init)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy