connect_closure_by_id
Description:
public static ulong connect_closure_by_id (void* instance, uint signal_id, Quark detail, Closure closure, bool after)
Connects a closure to a signal for a particular object.
If closure
is a floating reference (see sink), this function
takes ownership of closure
.
Parameters:
instance |
the instance to connect to. |
signal_id |
the id of the signal. |
detail |
the detail. |
closure |
the closure to connect. |
after |
whether the handler should be called before or after the default handler of the signal. |
Returns:
the handler ID (always greater than 0 for successful connections) |