#include <MyGUI_WidgetManager.h>
Public Types | |
typedef std::map< std::string, ParseDelegate > | MapDelegate |
typedef std::set < IWidgetFactory * > | SetWidgetFactory |
Public Member Functions | |
void | initialise () |
void | shutdown () |
Widget * | createWidget (WidgetStyle _style, const std::string &_type, const std::string &_skin, const IntCoord &_coord, Align _align, Widget *_parent, ICroppedRectangle *_cropeedParent, IWidgetCreator *_creator, const std::string &_name) |
void | destroyWidget (Widget *_widget) |
void | destroyWidgets (const VectorWidgetPtr &_widgets) |
void | destroyWidgets (EnumeratorWidgetPtr _widgets) |
void | registerUnlinker (IUnlinkWidget *_unlink) |
void | unregisterUnlinker (IUnlinkWidget *_unlink) |
void | unlinkFromUnlinkers (Widget *_widget) |
void | addWidgetToUnlink (Widget *_widget) |
void | removeWidgetFromUnlink (Widget *&_widget) |
bool | isFactoryExist (const std::string &_type) |
void | destroyWidgetsVector (VectorWidgetPtr &_widgets) |
Widget * | findWidgetT (const std::string &_name, bool _throw=true) |
Widget * | findWidgetT (const std::string &_name, const std::string &_prefix, bool _throw=true) |
void | registerFactory (IWidgetFactory *_factory) |
void | unregisterFactory (IWidgetFactory *_factory) |
void | parse (Widget *_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) |
Protected Attributes | |
SetWidgetFactory | mFactoryList |
MapDelegate | mDelegates |
VectorIUnlinkWidget | mVectorIUnlinkWidget |
VectorWidgetPtr | mUnlinkWidgets |
Definition at line 40 of file MyGUI_WidgetManager.h.
typedef std::map<std::string, ParseDelegate> MyGUI::WidgetManager::MapDelegate |
Definition at line 46 of file MyGUI_WidgetManager.h.
typedef std::set<IWidgetFactory*> MyGUI::WidgetManager::SetWidgetFactory |
Definition at line 48 of file MyGUI_WidgetManager.h.
void MyGUI::WidgetManager::addWidgetToUnlink | ( | Widget * | _widget | ) |
Definition at line 209 of file MyGUI_WidgetManager.cpp.
Widget * MyGUI::WidgetManager::createWidget | ( | WidgetStyle | _style, | |
const std::string & | _type, | |||
const std::string & | _skin, | |||
const IntCoord & | _coord, | |||
Align | _align, | |||
Widget * | _parent, | |||
ICroppedRectangle * | _cropeedParent, | |||
IWidgetCreator * | _creator, | |||
const std::string & | _name | |||
) |
Definition at line 126 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::destroyWidget | ( | Widget * | _widget | ) |
Destroy _widget
Definition at line 152 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::destroyWidgets | ( | EnumeratorWidgetPtr | _widgets | ) |
Destroy Enumerator of widgets
Definition at line 170 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::destroyWidgets | ( | const VectorWidgetPtr & | _widgets | ) |
Destroy vector of widgets
Definition at line 162 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::destroyWidgetsVector | ( | VectorWidgetPtr & | _widgets | ) | [inline] |
Definition at line 82 of file MyGUI_WidgetManager.h.
T* MyGUI::WidgetManager::findWidget | ( | const std::string & | _name, | |
const std::string & | _prefix, | |||
bool | _throw = true | |||
) | [inline] |
Definition at line 109 of file MyGUI_WidgetManager.h.
T* MyGUI::WidgetManager::findWidget | ( | const std::string & | _name, | |
bool | _throw = true | |||
) | [inline] |
Definition at line 100 of file MyGUI_WidgetManager.h.
Widget * MyGUI::WidgetManager::findWidgetT | ( | const std::string & | _name, | |
const std::string & | _prefix, | |||
bool | _throw = true | |||
) |
Definition at line 253 of file MyGUI_WidgetManager.cpp.
Widget * MyGUI::WidgetManager::findWidgetT | ( | const std::string & | _name, | |
bool | _throw = true | |||
) |
Definition at line 248 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::initialise | ( | ) |
Definition at line 63 of file MyGUI_WidgetManager.cpp.
bool MyGUI::WidgetManager::isFactoryExist | ( | const std::string & | _type | ) |
Definition at line 228 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::parse | ( | Widget * | _widget, | |
const std::string & | _key, | |||
const std::string & | _value | |||
) |
Definition at line 271 of file MyGUI_WidgetManager.cpp.
ParseDelegate & MyGUI::WidgetManager::registerDelegate | ( | const std::string & | _key | ) |
Definition at line 283 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::registerFactory | ( | IWidgetFactory * | _factory | ) |
Definition at line 258 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::registerUnlinker | ( | IUnlinkWidget * | _unlink | ) |
Register unlinker (call unlink if for any destroyed widget)
Definition at line 180 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::removeWidgetFromUnlink | ( | Widget *& | _widget | ) |
Definition at line 214 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::shutdown | ( | ) |
Definition at line 109 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::unlinkFromUnlinkers | ( | Widget * | _widget | ) |
Unlink widget
Definition at line 199 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::unregisterDelegate | ( | const std::string & | _key | ) |
Definition at line 290 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::unregisterFactory | ( | IWidgetFactory * | _factory | ) |
Definition at line 264 of file MyGUI_WidgetManager.cpp.
void MyGUI::WidgetManager::unregisterUnlinker | ( | IUnlinkWidget * | _unlink | ) |
Unregister unlinker (call unlink if for any destroyed widget)
Definition at line 186 of file MyGUI_WidgetManager.cpp.
MapDelegate MyGUI::WidgetManager::mDelegates [protected] |
Definition at line 119 of file MyGUI_WidgetManager.h.
SetWidgetFactory MyGUI::WidgetManager::mFactoryList [protected] |
Definition at line 117 of file MyGUI_WidgetManager.h.
VectorWidgetPtr MyGUI::WidgetManager::mUnlinkWidgets [protected] |
Definition at line 125 of file MyGUI_WidgetManager.h.
Definition at line 122 of file MyGUI_WidgetManager.h.