[ CCode ( has_construct_function = false ) ]
public EventListener (owned EventListenerCB callback)
Creates a new EventListener associated with a specified callback
.
callback |
An EventListenerCB to be called when an event is fired. |
callback_destroyed |
A DestroyNotify called when the listener is freed and data associated with the callback should be freed. Can be NULL. |
user_data |
data to pass to the callback. |
A new EventListener. |