API Reference / @gtkx/runtime / toClosure
Function: toClosure()
toClosure(
value):ExternalObject<Handle>
Defined in: packages/runtime/dist/closure.d.ts:17
Marshals a value passed where a GObject.Closure is expected into a closure handle: a function becomes a new GClosure dispatching into it, and an existing closure yields its own handle.
Parameters
value
unknown
Function to wrap, or an already-built closure.
Returns
Throws
When the value is neither.