Home | All Classes | Grouped Classes | Index | Search

# Class CL_EventListener

Event listening interace. More...

Derived from: none
Derived by: none
Group: Core (System)

#include <ClanLib/core.h>

Construction:

CL_EventListener | Constructs an event listener object.

Operations:

add_trigger | Adds an event trigger to the listener.
remove_trigger | Removes an event trigger from the listener.
clear | Removes all event triggers from the listener.
reset_all | Resets all event triggers added to the listener.
wait | Wait until one of the events triggers.

Detailed description:

!group=Core/System! !header=core.h!

The event listener is used to collect a set of events, identified as CL_EventTrigger, and wait for one of them to occur. This is analog to the low level C socket select() function, except that this one operates on clanlib objects.

Questions or comments, write to the ClanLib mailing list.