[ CCode ( has_construct_function = false ) ]
public Closure.object (uint sizeof_closure, Object object)
A variant of Closure.simple which stores object
in
the data
field of the closure and calls watch_closure on
object
and the created closure.
This function is mainly useful when implementing new types of closures.
sizeof_closure |
the size of the structure to allocate, must be at least `sizeof (GClosure)` |
object |
a Object pointer to store in the |
a newly allocated Closure |