#include "utils/logger/gooey_logger_internal.h"
Go to the source code of this file.
◆ GooeySignal_CallbackFunction
typedef void(* GooeySignal_CallbackFunction) (void *context, void *data) |
◆ GooeySignal_Slot
◆ GooeySignal_Create()
Creates a new signal object.
Signals are used to manage event handling and callbacks. This function initializes a new signal object.
- Returns
- GooeySignal The created signal object.
◆ GooeySignal_Emit()
void GooeySignal_Emit |
( |
GooeySignal * |
signal, |
|
|
void * |
data |
|
) |
| |
Emits a signal.
This function triggers the signal, invoking all linked callbacks in the order they were added.
- Parameters
-
signal | A pointer to the signal to emit. |
data | A void pointer to the data. |
◆ GooeySignal_Link()
Links a callback function to a signal.
This function connects a signal to a specific callback function. When the signal is emitted, the callback function will be executed.
- Parameters
-
signal | A pointer to the signal to which the callback is linked. |
callback | The callback function to execute when the signal is emitted. |
context | A user-defined context pointer passed to the callback. |
◆ GooeySignal_UnLinkAll()
Unlinks all callbacks from a signal.
Removes all callback functions linked to the specified signal, effectively clearing its event listeners.
- Parameters
-
signal | A pointer to the signal to modify. |