#include <MyGUI_WidgetManager.h>
Public Types | |
typedef std::map< std::string, ParseDelegate > | MapDelegate |
typedef std::set < IWidgetFactory * > | SetWidgetFactory |
Public Member Functions | |
WidgetManager () | |
~WidgetManager () | |
void | initialise () |
void | shutdown () |
WidgetPtr | createWidget (WidgetStyle _style, const std::string &_type, const std::string &_skin, const IntCoord &_coord, Align _align, WidgetPtr _parent, ICroppedRectangle *_cropeedParent, IWidgetCreator *_creator, const std::string &_name) |
void | destroyWidget (WidgetPtr _widget) |
void | destroyWidgets (const VectorWidgetPtr &_widgets) |
void | destroyWidgets (EnumeratorWidgetPtr _widgets) |
void | registerUnlinker (IUnlinkWidget *_unlink) |
void | unregisterUnlinker (IUnlinkWidget *_unlink) |
void | unlinkFromUnlinkers (WidgetPtr _widget) |
void | addWidgetToUnlink (WidgetPtr _widget) |
void | removeWidgetFromUnlink (WidgetPtr &_widget) |
void | destroyWidgetsVector (VectorWidgetPtr &_widgets) |
WidgetPtr | findWidgetT (const std::string &_name, bool _throw=true) |
WidgetPtr | findWidgetT (const std::string &_name, const std::string &_prefix, bool _throw=true) |
void | registerFactory (IWidgetFactory *_factory) |
void | unregisterFactory (IWidgetFactory *_factory) |
void | parse (WidgetPtr _widget, const std::string &_key, const std::string &_value) |
ParseDelegate & | registerDelegate (const std::string &_key) |
void | unregisterDelegate (const std::string &_key) |
template<typename T > | |
T * | findWidget (const std::string &_name, bool _throw=true) |
template<typename T > | |
T * | findWidget (const std::string &_name, const std::string &_prefix, bool _throw=true) |
Static Public Member Functions | |
static WidgetManager & | getInstance () |
static WidgetManager * | getInstancePtr () |
Protected Attributes | |
SetWidgetFactory | mFactoryList |
MapDelegate | mDelegates |
VectorIUnlinkWidget | mVectorIUnlinkWidget |
VectorWidgetPtr | mUnlinkWidgets |
Definition at line 39 of file MyGUI_WidgetManager.h.
typedef std::map<std::string, ParseDelegate> MyGUI::WidgetManager::MapDelegate |
Definition at line 41 of file MyGUI_WidgetManager.h.
typedef std::set<IWidgetFactory*> MyGUI::WidgetManager::SetWidgetFactory |
Definition at line 47 of file MyGUI_WidgetManager.h.
MyGUI::WidgetManager::WidgetManager | ( | ) |
Definition at line 61 of file MyGUI_WidgetManager.cpp.
MyGUI::WidgetManager::~WidgetManager | ( | ) |
Definition at line 61 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::addWidgetToUnlink | ( | WidgetPtr | _widget | ) |
Definition at line 286 of file MyGUI_WidgetManager.cpp.
WidgetPtr MyGUI::WidgetManager::createWidget | ( | WidgetStyle | _style, | |
const std::string & | _type, | |||
const std::string & | _skin, | |||
const IntCoord & | _coord, | |||
Align | _align, | |||
WidgetPtr | _parent, | |||
ICroppedRectangle * | _cropeedParent, | |||
IWidgetCreator * | _creator, | |||
const std::string & | _name | |||
) |
Definition at line 139 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::destroyWidget | ( | WidgetPtr | _widget | ) |
Destroy _widget
Definition at line 229 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::destroyWidgets | ( | EnumeratorWidgetPtr | _widgets | ) |
Destroy Enumerator of widgets
Definition at line 247 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::destroyWidgets | ( | const VectorWidgetPtr & | _widgets | ) |
Destroy vector of widgets
Definition at line 239 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::destroyWidgetsVector | ( | VectorWidgetPtr & | _widgets | ) | [inline] |
Definition at line 79 of file MyGUI_WidgetManager.h.
T* MyGUI::WidgetManager::findWidget | ( | const std::string & | _name, | |
bool | _throw = true | |||
) | [inline] |
Definition at line 97 of file MyGUI_WidgetManager.h.
T* MyGUI::WidgetManager::findWidget | ( | const std::string & | _name, | |
const std::string & | _prefix, | |||
bool | _throw = true | |||
) | [inline] |
Definition at line 106 of file MyGUI_WidgetManager.h.
WidgetPtr MyGUI::WidgetManager::findWidgetT | ( | const std::string & | _name, | |
const std::string & | _prefix, | |||
bool | _throw = true | |||
) |
Definition at line 192 of file MyGUI_WidgetManager.cpp.
WidgetPtr MyGUI::WidgetManager::findWidgetT | ( | const std::string & | _name, | |
bool | _throw = true | |||
) |
Definition at line 179 of file MyGUI_WidgetManager.cpp.
WidgetManager & MyGUI::WidgetManager::getInstance | ( | ) | [static] |
Definition at line 61 of file MyGUI_WidgetManager.cpp.
WidgetManager * MyGUI::WidgetManager::getInstancePtr | ( | ) | [static] |
Definition at line 61 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::initialise | ( | ) |
Definition at line 63 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::parse | ( | WidgetPtr | _widget, | |
const std::string & | _key, | |||
const std::string & | _value | |||
) |
Definition at line 217 of file MyGUI_WidgetManager.cpp.
ParseDelegate & MyGUI::WidgetManager::registerDelegate | ( | const std::string & | _key | ) |
Definition at line 204 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::registerFactory | ( | IWidgetFactory * | _factory | ) |
Definition at line 126 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::registerUnlinker | ( | IUnlinkWidget * | _unlink | ) |
Register unlinker (call unlink if for any destroyed widget)
Definition at line 257 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::removeWidgetFromUnlink | ( | WidgetPtr & | _widget | ) |
Definition at line 291 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::shutdown | ( | ) |
Definition at line 109 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::unlinkFromUnlinkers | ( | WidgetPtr | _widget | ) |
Unlink widget
Definition at line 276 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::unregisterDelegate | ( | const std::string & | _key | ) |
Definition at line 211 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::unregisterFactory | ( | IWidgetFactory * | _factory | ) |
Definition at line 132 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::unregisterUnlinker | ( | IUnlinkWidget * | _unlink | ) |
Unregister unlinker (call unlink if for any destroyed widget)
Definition at line 263 of file MyGUI_WidgetManager.cpp.
MapDelegate MyGUI::WidgetManager::mDelegates [protected] |
Definition at line 116 of file MyGUI_WidgetManager.h.
SetWidgetFactory MyGUI::WidgetManager::mFactoryList [protected] |
Definition at line 114 of file MyGUI_WidgetManager.h.
VectorWidgetPtr MyGUI::WidgetManager::mUnlinkWidgets [protected] |
Definition at line 122 of file MyGUI_WidgetManager.h.
Definition at line 119 of file MyGUI_WidgetManager.h.