Public Member Functions

a5::Event_Source Class Reference
[Event]

An Event_Source can be registered to an Event_Queue. More...

#include <Event.hpp>

Inheritance diagram for a5::Event_Source:
Inheritance graph

List of all members.

Public Member Functions

virtual std::auto_ptr< EventHandle (ALLEGRO_EVENT *raw_event) const =0
 Processes Allegro event messages in to A5SES Events.
 Event_Source ()
 Creates an invalid Event_Source object SetEventSource must be called before the object is valid.
 Event_Source (ALLEGRO_EVENT_SOURCE *event_source_)
 Points the Allegro event source towards this object.
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.
virtual ~Event_Source ()
 Customary virtual destructor for base types.

Detailed Description

An Event_Source can be registered to an Event_Queue.


Constructor & Destructor Documentation

a5::Event_Source::Event_Source (  ) 

Creates an invalid Event_Source object SetEventSource must be called before the object is valid.

a5::Event_Source::Event_Source ( ALLEGRO_EVENT_SOURCE *  event_source_  ) 

Points the Allegro event source towards this object.

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

Customary virtual destructor for base types.


Member Function Documentation

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

Processes Allegro event messages in to A5SES Events.

Implemented in a5::Display, a5::User_Event_Source, a5::Keyboard, a5::Mouse, and a5::Timer.

void a5::Event_Source::SetEventSource ( ALLEGRO_EVENT_SOURCE *  event_source  ) 

Points the Allegro event source towards this object.

a5::Event_Source::operator ALLEGRO_EVENT_SOURCE * (  )  const

Returns a pointer to the Allegro event source.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines