DClosure

class DClosure : Closure {}

Inherited Members

From Closure

newObject
gobject.closure.Closure newObject(uint sizeofClosure, gobject.object.ObjectG object)

A variant of gobject.closure.Closure.newSimple which stores object in the data field of the closure and calls gobject.object.ObjectG.watchClosure on object and the created closure. This function is mainly useful when implementing new types of closures.

newSimple
gobject.closure.Closure newSimple(uint sizeofClosure, void* data)

Allocates a struct of the given size and initializes the initial part as a #GClosure.

invalidate
void invalidate()

Sets a flag on the closure to indicate that its calling environment has become invalid, and thus causes any future invocations of gobject.closure.Closure.invoke on this closure to be ignored.

invoke
void invoke(gobject.value.Value returnValue, gobject.value.Value[] paramValues, void* invocationHint)

Invokes the closure, i.e. executes the callback represented by the closure.

sink
void sink()

Takes over the initial ownership of a closure.