SDL++
C++wrapperfortheSDLlibrary.

sdl::event::Event< Comparator, Base > Struct Template Reference

Represents an event. More...

#include <Event.h>

List of all members.

Public Member Functions

 Event (const SDL_Event *event=0)

Static Public Member Functions

static bool is (const SDL_Event *event)

Detailed Description

template<typename Comparator, typename Base>
struct sdl::event::Event< Comparator, Base >

Represents an event.

Template Parameters:
ComparatorEnsures the correctness of the SDL_Event structure.
BaseThe Base type of the event.

Definition at line 59 of file Event.h.


Constructor & Destructor Documentation

template<typename Comparator, typename Base>
sdl::event::Event< Comparator, Base >::Event ( const SDL_Event< Comparator, Base > *  event = 0) [inline, explicit]

Constructs an event from a SDL_Event structure.

Parameters:
eventThe SDL_Event structure.
Exceptions:
runtime_errorThrows a runtime_error if the event type in incorrect.

Definition at line 76 of file Event.h.


Member Function Documentation

template<typename Comparator, typename Base>
static bool sdl::event::Event< Comparator, Base >::is ( const SDL_Event< Comparator, Base > *  event) [inline, static]

Determines if the SDL_Event structure is correct for this event.

Parameters:
eventThe SDL_Event structure to check.
Returns:
True if the SDL_Event structure is correct, false otherwise.

Definition at line 67 of file Event.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs