#include <EventPump.h>
Public Member Functions | |
virtual | ~EventPump () |
virtual void | operator() () |
#include <GG/EventPump.h> class MyEventPump : public GG::EventPumpBase { public: void operator()() { LoopBody(GG::GUI::GetGUI(), State(), true, true); } };
From your application's rendering loop, invoke your event pump once per iteration:
MyEventPump pump; // ... while ( ... ) { // Application-specific code to grab events from the OS or other // lower-level driver layer and pass the GG-relevant ones to GG goes here. // See SDLGUI::HandleSystemEvents() for an example. pump(); }
Definition at line 120 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.