EventListener.simple


Description:

[ CCode ( has_construct_function = false ) ]
public EventListener.simple (owned EventListenerSimpleCB callback)

Creates a new EventListener associated with a specified callback.

Parameters:

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.

Returns:

A new EventListener.