DClosure

class DClosure : Closure {
void* contextPtr;
}

Constructors

this
this(T cb, GClosureMarshal cMarshal)

Inherited Members

From Closure

cPtr
void* cPtr(Flag!"Dup" dup)
getGType
GType getGType()
gType
GType gType [@property getter]
self
Closure self()

Returns this, for use in with statements.

inMarshal
uint inMarshal [@property getter]

Get field inMarshal.

inMarshal
uint inMarshal [@property setter]

Set field inMarshal.

isInvalid
uint isInvalid [@property getter]

Get field isInvalid.

isInvalid
uint isInvalid [@property setter]

Set field isInvalid.

MarshalFuncType
alias MarshalFuncType = void function(GClosure* closure, GValue* returnValue, uint nParamValues, const(GValue)* paramValues, void* invocationHint, void* marshalData)

Function alias for field marshal

marshal
MarshalFuncType marshal [@property getter]
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.