CClosure.newSwap

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

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. [transfer full]

Meta