|
gwenhywfar
5.10.1
|
Signals. More...
|
Modules | |
| Slots | |
| Slots. | |
SignalObject | |
| GWENHYWFAR_API GWEN_SIGNAL * | GWEN_Signal_new (GWEN_SIGNALOBJECT *so, const char *derivedType, const char *name, const char *typeOfArg1, const char *typeOfArg2) |
| GWENHYWFAR_API void | GWEN_Signal_free (GWEN_SIGNAL *sig) |
| GWENHYWFAR_API GWEN_SIGNALOBJECT * | GWEN_Signal_GetSignalObject (const GWEN_SIGNAL *sig) |
| GWENHYWFAR_API int | GWEN_Signal_Connect (GWEN_SIGNAL *sig, GWEN_SLOT *slot) |
| GWENHYWFAR_API int | GWEN_Signal_Disconnect (GWEN_SIGNAL *sig, GWEN_SLOT *slot) |
| GWENHYWFAR_API int | GWEN_Signal_Emit (GWEN_SIGNAL *sig, void *pArg1, void *pArg2, int iArg3, int iArg4) |
Signals.
| GWENHYWFAR_API int GWEN_Signal_Connect | ( | GWEN_SIGNAL * | sig, |
| GWEN_SLOT * | slot | ||
| ) |
Definition at line 406 of file gwensignal.c.
References DBG_ERROR, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Signal_List2_HasSignal(), and GWEN_Slot_List2_HasSlot().

| GWENHYWFAR_API int GWEN_Signal_Disconnect | ( | GWEN_SIGNAL * | sig, |
| GWEN_SLOT * | slot | ||
| ) |
Definition at line 446 of file gwensignal.c.
References DBG_ERROR, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Signal_List2_HasSignal(), and GWEN_Slot_List2_HasSlot().

| GWENHYWFAR_API int GWEN_Signal_Emit | ( | GWEN_SIGNAL * | sig, |
| void * | pArg1, | ||
| void * | pArg2, | ||
| int | iArg3, | ||
| int | iArg4 | ||
| ) |
This function calls the slot function of all connected slots. If any of the slot functions called returns with code 1 then this function will return 1, too. Otherwise 0 is returned. This means that this function will only return 0 if every called slot function returns 0.
Definition at line 472 of file gwensignal.c.
References DBG_DEBUG, and GWEN_LOGDOMAIN.
| GWENHYWFAR_API void GWEN_Signal_free | ( | GWEN_SIGNAL * | sig | ) |
Definition at line 315 of file gwensignal.c.
References DBG_ERROR, GWEN_FREE_OBJECT, and GWEN_LOGDOMAIN.
Referenced by GWEN_Signal__List2_freeAll_cb(), GWEN_Signal_new(), and GWEN_SignalObject_RemoveForDerivedType().

| GWENHYWFAR_API GWEN_SIGNALOBJECT* GWEN_Signal_GetSignalObject | ( | const GWEN_SIGNAL * | sig | ) |
Definition at line 398 of file gwensignal.c.
| GWENHYWFAR_API GWEN_SIGNAL* GWEN_Signal_new | ( | GWEN_SIGNALOBJECT * | so, |
| const char * | derivedType, | ||
| const char * | name, | ||
| const char * | typeOfArg1, | ||
| const char * | typeOfArg2 | ||
| ) |
Definition at line 284 of file gwensignal.c.
References GWEN_NEW_OBJECT, GWEN_Signal_free(), GWEN_SignalObject_AddSignal(), and GWEN_SignalObject_MkTypeId().

1.8.14