Public Types | Public Member Functions | Public Attributes | Static Public Attributes

a5::Display::Event Class Reference
[EventDisplay]

Display event object. More...

#include <Display.hpp>

Inheritance diagram for a5::Display::Event:
Inheritance graph

List of all members.

Public Types

enum  Sub {
  Close = Type * 0x10000000 + 1,
  Resize = Type * 0x10000000 + 2,
  Expose = Type * 0x10000000 + 3,
  Lost = Type * 0x10000000 + 4,
  Found = Type * 0x10000000 + 5,
  SwitchOut = Type * 0x10000000 + 6,
  SwitchIn = Type * 0x10000000 + 7
}
 

Event subtypes.

More...

Public Member Functions

unsigned int SubType () const
 Returns the subtype ID of the event.
 Event (const Event_Source *source_, Sub subtype_, int x_, int y_, int width_, int height_)
 Creates a Display event.
unsigned int Type () const
 Returns the Type ID of the event Returns 0 (User_Type) for all user events.
 operator ALLEGRO_EVENT * () const
 Returns a pointer to the Allegro event.

Public Attributes

int x
int y
int width
int height
ALLEGRO_EVENT * raw
const Event_Sourcesource
 Pointer to the Event_Source that emitted the event.

Static Public Attributes

static const unsigned int Type = 0x00000002
static const unsigned int User_Type = 0x00000000

Detailed Description

Display event object.


Member Enumeration Documentation

Event subtypes.


Constructor & Destructor Documentation

a5::Display::Event::Event ( const Event_Source source_,
Sub  subtype_,
int  x_,
int  y_,
int  width_,
int  height_ 
)

Creates a Display event.


Member Function Documentation

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

Returns the subtype ID of the event.

Reimplemented from a5::Event.

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

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

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