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:
-
Comparator | Ensures the correctness of the SDL_Event structure. |
Base | The 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:
-
event | The SDL_Event structure. |
- Exceptions:
-
runtime_error | Throws 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:
-
event | The 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: