Public Member Functions | Public Attributes | Static Public Attributes

a5::User_Event Class Reference
[Event]

Reference counted user event. More...

#include <Event.hpp>

Inheritance diagram for a5::User_Event:
Inheritance graph

List of all members.

Public Member Functions

 User_Event ()
 Constructs a user event.
unsigned int SubType ()
 User events all have the same a5ses subtype.
virtual ~User_Event ()
 Customary virtual destructor for base types.
unsigned int Type () const
 Returns the Type ID of the event Returns 0 (User_Type) for all user events.
virtual unsigned int SubType () const
 Returns the subtype ID of the event Returns the same as Type() for event types with no sub-types Returns 0 for all user events.
 operator ALLEGRO_EVENT * () const
 Returns a pointer to the Allegro event.

Public Attributes

ALLEGRO_EVENT * raw
const Event_Sourcesource
 Pointer to the Event_Source that emitted the event.

Static Public Attributes

static const unsigned int User_Type = 0x00000000

Detailed Description

Reference counted user event.


Constructor & Destructor Documentation

a5::User_Event::User_Event (  ) 

Constructs a user event.

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

Customary virtual destructor for base types.


Member Function Documentation

unsigned int a5::User_Event::SubType (  ) 

User events all have the same a5ses subtype.

unsigned int a5::Event::Type (  )  const [inherited]

Returns the Type ID of the event Returns 0 (User_Type) for all user events.

virtual unsigned int a5::Event::SubType (  )  const [virtual, inherited]

Returns the subtype ID of the event Returns the same as Type() for event types with no sub-types Returns 0 for all user events.

Reimplemented in a5::Display::Event, a5::Keyboard::Event, a5::Mouse::Event, and a5::Timer::Event.

a5::Event::operator ALLEGRO_EVENT * (  )  const [inherited]

Returns a pointer to the Allegro event.


Member Data Documentation

const Event_Source* a5::Event::source [inherited]

Pointer to the Event_Source that emitted the event.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines