ObjectG.getDObject

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

class ObjectG
static
T
getDObject
(
T
)
(
void* cptr
,
Flag!"Take" take = No.Take
)

Parameters

T

The D object type

take Flag!"Take"

If Yes.Take then the D object will consume a GObject reference (No.Take by default).

Return Value

Type: T

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