core/event.h

Includes from this file:

Declarations in this file:

Data members in SGEvent

data
\brief User-provided data This is treated as an opaque pointer by SIEGE.
func
\brief Event callback function This function is called when the event is triggered.
priority
...
type
...

Functions

_sgEventInit
sgEventCall
sgEventCallv
\memberof SGEvent \brief Trigger an event \param type The event type to trigger \param args The arguments to pass (treated as an opaque pointer by SIEGE) This function triggers an event, and in turn, every event handler of the correct type (unless previously stopped).
sgEventCreate
\memberof SGEvent \brief Create an event handler \param priority Event handler priority \param type Event handler type \param data User data for the event handler \param func Function to call when the event is triggered \return The newly created event handler if successful, NULL otherwise.
sgEventDestroy
\memberof SGEvent \brief Destroy an event handler \param event The event handler to destroy.

Typedefs

SGEvent
SGEventCall