#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) |
__declspec (deprecated("use : void WidgetManager::destroyWidgets(VectorWidgetPtr &_widgets)")) void destroyWidgetsVector(VectorWidgetPtr &_widgets) | |
MYGUI_OBSOLETE_START ("") MYGUI_OBSOLETE_END void unregisterFactory(IWidgetFactory *_factory) | |
__declspec (deprecated("use : void Widget::setProperty(const std::string &_key, const std::string &_value)")) void parse(WidgetPtr _widget | |
template<typename T > | |
MYGUI_OBSOLETE_START ("") MYGUI_OBSOLETE_END T *findWidget(const std | |
Static Public Member Functions | |
static WidgetManager & | getInstance () |
static WidgetManager * | getInstancePtr () |
Data Fields | |
const std::string & | _key |
const std::string const std::string & | _value |
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.
MyGUI::WidgetManager::__declspec | ( | deprecated("use : void Widget::setProperty(const std::string &_key, const std::string &_value)") | ) |
MyGUI::WidgetManager::__declspec | ( | deprecated("use : void WidgetManager::destroyWidgets(VectorWidgetPtr &_widgets)") | ) | [inline] |
Definition at line 78 of file MyGUI_WidgetManager.h.
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.
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.
MyGUI::WidgetManager::MYGUI_OBSOLETE_START | ( | "" | ) | const [inline] |
Definition at line 105 of file MyGUI_WidgetManager.h.
MyGUI::WidgetManager::MYGUI_OBSOLETE_START | ( | "" | ) |
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::unregisterUnlinker | ( | IUnlinkWidget * | _unlink | ) |
Unregister unlinker (call unlink if for any destroyed widget)
Definition at line 263 of file MyGUI_WidgetManager.cpp.
const std::string& MyGUI::WidgetManager::_key |
Definition at line 89 of file MyGUI_WidgetManager.h.
const std::string const std::string& MyGUI::WidgetManager::_value |
Definition at line 89 of file MyGUI_WidgetManager.h.
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.