ObjectWrap._getDObject

Template to get the D object from a C GObject and cast it to the given D object type.

class ObjectWrap
static
T
_getDObject
(
T
)
(
void* cptr
,
Flag!"Take" take
)

Parameters

T

The D object type

cptr void*

The C GObject (can be null, in which case null is returned)

take Flag!"Take"

If Yes.Take then the D object will consume a GObject reference.

Return Value

Type: T

The D object (which may be a new object if the GObject wasn't already wrapped)