GG::EventPumpBase Class Reference

the base type for all EventPump types. More...

#include <EventPump.h>

Inheritance diagram for GG::EventPumpBase:

GG::EventPump GG::ModalEventPump List of all members.

Protected Member Functions

void LoopBody (GUI *gui, EventPumpState &state, bool do_non_rendering, bool do_rendering)

Static Protected Member Functions

static EventPumpStateState ()

Detailed Description

the base type for all EventPump types.

The action taken by EventPumpBase is a part of the basic GG::GUI functionality; users who wish to define a new type of event pump should do so by inheriting from EventPump instead of this class.

Definition at line 53 of file EventPump.h.


Member Function Documentation

void GG::EventPumpBase::LoopBody ( GUI gui,
EventPumpState state,
bool  do_non_rendering,
bool  do_rendering 
) [protected]

executes everything but the system event handling portion of the event handling and rendering cycle.

If do_non_rendering is true, all the non-rendering code in LoopBody() will be executed; if do_rendering is true, all rendering code in LoopBody() will be executed as well. Set one or both of these to false to remove them from the execution of LoopBody(). This is provided mainly so users don't have to manually turn off and then turn back on FPS limits, etc., if they don't want them to take place in their custom event pump. Also, this provides a convenient way to turn rendering off completely in a custom event pump, if that is desired.

static EventPumpState& GG::EventPumpBase::State (  )  [static, protected]

returns the EventPumpState object shared by all event pump types.


The documentation for this class was generated from the following file:
Generated on Wed Mar 26 14:35:42 2008 for GG by  doxygen 1.5.2