Public Member Functions

a5::User_Event_Source Class Reference
[Event]

User-defined event sources. More...

#include <Event.hpp>

Inheritance diagram for a5::User_Event_Source:
Inheritance graph

List of all members.

Public Member Functions

 User_Event_Source ()
 Creates a user event source.
virtual std::auto_ptr< EventHandle (ALLEGRO_EVENT *raw_event) const
 Processes Allegro event messages in to A5SES Events.
void Emit (a5::Event *event)
 Emits a user event After being emitted it is not valid to access event.
virtual ~User_Event_Source ()
 Destroys the user event source.
void SetEventSource (ALLEGRO_EVENT_SOURCE *event_source)
 Points the Allegro event source towards this object.
 operator ALLEGRO_EVENT_SOURCE * () const
 Returns a pointer to the Allegro event source.

Detailed Description

User-defined event sources.


Constructor & Destructor Documentation

a5::User_Event_Source::User_Event_Source (  ) 

Creates a user event source.

virtual a5::User_Event_Source::~User_Event_Source (  )  [virtual]

Destroys the user event source.


Member Function Documentation

virtual std::auto_ptr<Event> a5::User_Event_Source::Handle ( ALLEGRO_EVENT *  raw_event  )  const [virtual]

Processes Allegro event messages in to A5SES Events.

Implements a5::Event_Source.

void a5::User_Event_Source::Emit ( a5::Event event  ) 

Emits a user event After being emitted it is not valid to access event.

void a5::Event_Source::SetEventSource ( ALLEGRO_EVENT_SOURCE *  event_source  )  [inherited]

Points the Allegro event source towards this object.

a5::Event_Source::operator ALLEGRO_EVENT_SOURCE * (  )  const [inherited]

Returns a pointer to the Allegro event source.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines