ObjectWrap._getDObject

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

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

Parameters

TThe D object type
cptrThe C GObject (can be null, in which case null is returned)
takeIf Yes.Take then the D object will consume a GObject reference.

Returns

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