FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
#include <hybridguimanager.h>
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 HybridGuiManager * | instance () |
Protected Member Functions inherited from FIFE::IListener | |
IListener () | |
Definition at line 39 of file hybridguimanager.h.
FIFE::HybridGuiManager::HybridGuiManager | ( | ) |
Constructor.
Definition at line 38 of file hybridguimanager.cpp.
FIFE::HybridGuiManager::~HybridGuiManager | ( | ) |
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.
|
virtual |
Calls onSdlEvent for each gui manager in the hybrid manager's queue.
event | The event to be processed by each gui manager. |
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.
|
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.
|
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.
|
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().