2016-05-26 21:08:31 +02:00
|
|
|
|
2017-10-21 01:54:36 +02:00
|
|
|
--- Disconnect from a signal.
|
|
|
|
-- @tparam string name The name of the signal.
|
|
|
|
-- @tparam function func The callback that should be disconnected.
|
2019-06-06 22:32:53 +02:00
|
|
|
-- @method disconnect_signal
|
2016-05-26 21:08:31 +02:00
|
|
|
|
|
|
|
--- Emit a signal.
|
|
|
|
--
|
2017-10-21 01:54:36 +02:00
|
|
|
-- @tparam string name The name of the signal.
|
2016-05-26 21:08:31 +02:00
|
|
|
-- @param ... Extra arguments for the callback functions. Each connected
|
2017-10-21 01:54:36 +02:00
|
|
|
-- function receives the object as first argument and then any extra
|
|
|
|
-- arguments that are given to emit_signal().
|
2019-06-06 22:32:53 +02:00
|
|
|
-- @method emit_signal
|
2016-05-26 21:08:31 +02:00
|
|
|
|
|
|
|
--- Connect to a signal.
|
2017-10-21 01:54:36 +02:00
|
|
|
-- @tparam string name The name of the signal.
|
|
|
|
-- @tparam function func The callback to call when the signal is emitted.
|
2019-06-06 22:32:53 +02:00
|
|
|
-- @method connect_signal
|
2016-05-26 21:08:31 +02:00
|
|
|
|
2017-10-21 01:54:36 +02:00
|
|
|
--- Connect to a signal weakly.
|
|
|
|
--
|
|
|
|
-- This allows the callback function to be garbage collected and
|
|
|
|
-- automatically disconnects the signal when that happens.
|
2016-05-26 21:08:31 +02:00
|
|
|
--
|
|
|
|
-- **Warning:**
|
|
|
|
-- Only use this function if you really, really, really know what you
|
|
|
|
-- are doing.
|
2017-10-21 01:54:36 +02:00
|
|
|
-- @tparam string name The name of the signal.
|
|
|
|
-- @tparam function func The callback to call when the signal is emitted.
|
2019-06-06 22:32:53 +02:00
|
|
|
-- @method weak_connect_signal
|