CClosure.this

Creates a new closure which invokes callbackFunc with userData as the last parameter.

  1. this(GCClosure* gCClosure, bool ownedRef)
  2. this(GCallback callbackFunc, void* userData, GClosureNotify destroyData, bool swap)
  3. this(GCallback callbackFunc, ObjectG object, bool swap)

Parameters

callbackFunc GCallback

the function to invoke

userData void*

user data to pass to callbackFunc

destroyData GClosureNotify

destroy notify to be called when userData is no longer used

swap bool

if true invoce with usrData as the first parameter

Throws

ConstructionException GTK+ fails to create the object.