[ CCode ( has_construct_function = false ) ]
public EventListener.simple (owned EventListenerSimpleCB callback)
Creates a new EventListener associated with a specified callback
.
callback |
An EventListenerSimpleCB 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. |
A new EventListener. |