CClosure.newCClosure

Creates a new closure which invokes callback_func with user_data as the last parameter.

class CClosure
static
newCClosure

Parameters

callbackFunc GCallback

the function to invoke

userData void*

user data to pass to callback_func

destroyData GClosureNotify

destroy notify to be called when user_data is no longer used

Return Value

Type: Closure

a new GCClosure

Meta