ObjectWrap.this

this(GType type)

Create an ObjectWrap which is wrapping a C GObject with the given GType. Useful for creating custom D classes which are derived from ObjectWrap.

Parameters

typeThe GType value to use for creating the wrapped GObject
this(void * cObj, Flag!"Take" take)

Constructor to wrap a C GObject with a D proxy object.

Parameters

cObjPointer to the GObject
takeYes.Take if the D object should take ownership of the passed reference, No.Take to add a new reference