Module: signals
Handling of signals.
This can not be used as a standalone class, but is instead referenced
explicitely in the classes, where it can be used. In the respective classes,
it then can be used via classname:connect_signal(...)
etc.
Methods
:connect_signal (name, func) | Add a signal. | |
:disconnect_signal (name, func) | Remove a signal. | |
:emit_signal (name[, ...]) | Emit a signal. |
Methods
- :connect_signal (name, func)
-
Add a signal.
Parameters:
- name string A signal name.
- func func A function to call when the signal is emitted.
- :disconnect_signal (name, func)
-
Remove a signal.
Parameters:
- name string A signal name.
- func func A function to remove.
- :emit_signal (name[, ...])
-
Emit a signal.
Parameters:
- name string A signal name.
- ... Various arguments. (optional)