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

commonMain.DrawerExtensions.kt Maven / Gradle / Ivy

package org.openrndr.extra.textwriter

import org.openrndr.draw.Drawer
import kotlin.contracts.ExperimentalContracts
import kotlin.contracts.InvocationKind
import kotlin.contracts.contract
import kotlin.jvm.JvmName

@OptIn(ExperimentalContracts::class)
@JvmName("drawerWriter")
fun  Drawer.writer(f: TextWriter.() -> T): T {
    contract {
        callsInPlace(f, InvocationKind.EXACTLY_ONCE)
    }
    return writer(this, f)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy