Reference counted user event. More...
#include <Event.hpp>
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_Source * | source |
Pointer to the Event_Source that emitted the event. | |
Static Public Attributes | |
static const unsigned int | User_Type = 0x00000000 |
Reference counted user event.
a5::User_Event::User_Event | ( | ) |
Constructs a user event.
virtual a5::User_Event::~User_Event | ( | ) | [virtual] |
Customary virtual destructor for base types.
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.
const Event_Source* a5::Event::source [inherited] |
Pointer to the Event_Source that emitted the event.