FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
FIFE::HybridGuiManager Class Reference

#include <hybridguimanager.h>

+ Inheritance diagram for FIFE::HybridGuiManager:
+ Collaboration diagram for FIFE::HybridGuiManager:

Public Member Functions

 HybridGuiManager ()
 Constructor. More...
 
 ~HybridGuiManager ()
 Destructor. More...
 
void addGuiManager (IGUIManager *guiManager)
 Adds a gui manager to this hybrid manager. More...
 
void removeGuiManager (IGUIManager *guiManager)
 Removes a gui manager from this hybrid manager. More...
 
virtual void turn ()
 Calls turn for each gui manager in the hybrid manager's queue. More...
 
virtual bool onSdlEvent (SDL_Event &event)
 Calls onSdlEvent for each gui manager in the hybrid manager's queue. More...
 
virtual void resizeTopContainer (uint32_t x, uint32_t y, uint32_t width, uint32_t height)
 Calls resize top container for each of the gui managers in the queue. More...
 
- Public Member Functions inherited from FIFE::IGUIManager
virtual ~IGUIManager ()
 Destructor. More...
 
- Public Member Functions inherited from FIFE::ISdlEventListener
virtual ~ISdlEventListener ()
 
- Public Member Functions inherited from FIFE::DynamicSingleton< HybridGuiManager >
 DynamicSingleton ()
 
virtual ~DynamicSingleton ()
 

Private Attributes

std::vector< IGUIManager * > m_guiManagers
 All gui managers composing this hybrid gui manager. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from FIFE::DynamicSingleton< HybridGuiManager >
static HybridGuiManagerinstance ()
 

Detailed Description

Definition at line 39 of file hybridguimanager.h.

Constructor & Destructor Documentation

FIFE::HybridGuiManager::HybridGuiManager ( )

Constructor.

Definition at line 38 of file hybridguimanager.cpp.

FIFE::HybridGuiManager::~HybridGuiManager ( )

Destructor.

Definition at line 41 of file hybridguimanager.cpp.

References m_guiManagers.

Member Function Documentation

void FIFE::HybridGuiManager::addGuiManager ( IGUIManager guiManager)

Adds a gui manager to this hybrid manager.

WARNING This object gains ownership of the added gui manager.

Definition at line 52 of file hybridguimanager.cpp.

References m_guiManagers.

bool FIFE::HybridGuiManager::onSdlEvent ( SDL_Event &  event)
virtual

Calls onSdlEvent for each gui manager in the hybrid manager's queue.

Parameters
eventThe event to be processed by each gui manager.
Returns
A boolean value indicating if the event was consumed by one of the gui managers in the queue.

Implements FIFE::ISdlEventListener.

Definition at line 83 of file hybridguimanager.cpp.

References m_guiManagers.

void FIFE::HybridGuiManager::removeGuiManager ( IGUIManager guiManager)

Removes a gui manager from this hybrid manager.

WARNING This object loses owenership of the removed gui manager.

Definition at line 56 of file hybridguimanager.cpp.

References FIFE::_log, FL_WARN, and m_guiManagers.

void FIFE::HybridGuiManager::resizeTopContainer ( uint32_t  x,
uint32_t  y,
uint32_t  width,
uint32_t  height 
)
virtual

Calls resize top container for each of the gui managers in the queue.

Implements FIFE::IGUIManager.

Definition at line 101 of file hybridguimanager.cpp.

References m_guiManagers.

void FIFE::HybridGuiManager::turn ( )
virtual

Calls turn for each gui manager in the hybrid manager's queue.

Implements FIFE::IGUIManager.

Definition at line 72 of file hybridguimanager.cpp.

References m_guiManagers.

Member Data Documentation

std::vector<IGUIManager*> FIFE::HybridGuiManager::m_guiManagers
private

All gui managers composing this hybrid gui manager.

Definition at line 85 of file hybridguimanager.h.

Referenced by addGuiManager(), onSdlEvent(), removeGuiManager(), resizeTopContainer(), turn(), and ~HybridGuiManager().


The documentation for this class was generated from the following files: