#include <EventPump.h>
Inheritance diagram for GG::EventPump:
Public Member Functions | |
virtual | ~EventPump () |
virtual void | operator() () |
Events from the application framework (i.e. SDL, DirectInput, etc.) are received by an EventPump, and appropriate action is taken. The default action is to call GUI::HandleSystemEvents(), but any action can be taken in a EventPump-derived type that overrides operator()(). For example, it might be useful to override operator()() with a function that gives all GG-relevant events to a GG event-hendler, and gives all other events to a system-specific handler, if your GUI-derived class does not already do so.
Definition at line 74 of file EventPump.h.
virtual GG::EventPump::~EventPump | ( | ) | [inline, virtual] |
virtual void GG::EventPump::operator() | ( | ) | [virtual] |
cycles through event-handling and rendering, calling GUI::HandleSystemEvents() and then EventPumpBase::LoopBody().
Reimplemented in GG::ModalEventPump.