SDL++
C++wrapperfortheSDLlibrary.
|
Dispatches events to Listeners. More...
#include <Dispatcher.h>
Public Member Functions | |
Dispatcher () | |
template<class Handler > | |
Dispatcher (Handler &handler) | |
template<class Handler > | |
Dispatcher & | add (Handler &handler) |
void | operator() (const SDL_Event *event) |
Dispatches events to Listeners.
Definition at line 81 of file Dispatcher.h.
sdl::event::Dispatcher::Dispatcher | ( | ) | [inline] |
Constructs a default Dispatcher.
Definition at line 86 of file Dispatcher.h.
sdl::event::Dispatcher::Dispatcher | ( | Handler & | handler | ) | [inline] |
Constructs a Dispatcher from a Handler.
Handler | The type of the Handler from which to construct the Dispatcher. |
handler | The handler form which to get the Listener's handle functions. |
Definition at line 96 of file Dispatcher.h.
Dispatcher& sdl::event::Dispatcher::add | ( | Handler & | handler | ) | [inline] |
Adds a handler to the Dispatcher.
Handler | The type of the Handler to add to the dispatcher. |
handler | The Handler to add to the Dispatcher. |
Definition at line 108 of file Dispatcher.h.
void sdl::event::Dispatcher::operator() | ( | const SDL_Event * | event | ) | [inline] |
Dispatches an event.
event | The event to handle. |
Definition at line 118 of file Dispatcher.h.