Package org.gtk.gobject.ktx

Functions

use
Link copied to clipboard
fun <T : KGObject, O> T.use(block: (T) -> O): O

Use a KGObject, then unref, finally return the result