FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
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::IListener
virtual bool isActive ()
 Indicates if the listener is active. More...
 
virtual void setActive (bool active)
 Changes the listener status. More...
 
virtual ~IListener ()
 
- 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 ()
 
- Protected Member Functions inherited from FIFE::IListener
 IListener ()
 

Detailed Description

Definition at line 39 of file hybridguimanager.h.

Constructor & Destructor Documentation

◆ HybridGuiManager()

FIFE::HybridGuiManager::HybridGuiManager ( )

Constructor.

Definition at line 38 of file hybridguimanager.cpp.

◆ ~HybridGuiManager()

FIFE::HybridGuiManager::~HybridGuiManager ( )

Destructor.

Definition at line 41 of file hybridguimanager.cpp.

References m_guiManagers.

Member Function Documentation

◆ addGuiManager()

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.

◆ onSdlEvent()

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.

◆ removeGuiManager()

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.

◆ resizeTopContainer()

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.

◆ turn()

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

◆ m_guiManagers

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: