![]() |
![]() |
![]() |
MLib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
MLib SignalsMLib Signals — A means for customization of object behaviour and a general purpose notification mechanism |
#include <mlib.h> #define m_signal_connect (detailed_signal, instance, c_handler, data) #define m_signal_connect_swapped (detailed_signal, instance, c_handler, data)
The basic concept of the signal system is that of the emission of a signal. Signals are introduced per-type and are identified through strings.
#define m_signal_connect(detailed_signal,instance,c_handler,data)
stability
: Unstable
Questa macro ridefinisce la posizione degli argomenti passati alla macro g_signal_connect. Questa disposizione modificata tende a rendere la lettura dei sorgenti meno faticosa e più compatta.
|
a string of the form "signal-name::detail". |
|
the instance to connect to. |
|
the GCallback to connect. |
|
data to pass to c_handler calls. |
Returns : |
the handler id see also: g_signal_connect |
#define m_signal_connect_swapped(detailed_signal,instance,c_handler,data)
stability
: Unstable
Questa macro ridefinisce la posizione degli argomenti passati alla macro g_signal_connect_swapped. Questa disposizione modificata tende a rendere la lettura dei sorgenti meno faticosa e più compatta.
|
a string of the form "signal-name::detail". |
|
the instance to connect to. |
|
the GCallback to connect. |
|
data to pass to c_handler calls. |
Returns : |
the handler id see also: g_signal_connect_swapped |