MyGUI::WidgetManager Class Reference

#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 WidgetManagergetInstance ()
static WidgetManagergetInstancePtr ()

Data Fields

const std::string & _key
const std::string const
std::string & 
_value

Protected Attributes

SetWidgetFactory mFactoryList
MapDelegate mDelegates
VectorIUnlinkWidget mVectorIUnlinkWidget
VectorWidgetPtr mUnlinkWidgets

Detailed Description

Definition at line 39 of file MyGUI_WidgetManager.h.


Member Typedef Documentation

typedef std::map<std::string, ParseDelegate> MyGUI::WidgetManager::MapDelegate

Definition at line 41 of file MyGUI_WidgetManager.h.

Definition at line 47 of file MyGUI_WidgetManager.h.


Constructor & Destructor Documentation

MyGUI::WidgetManager::WidgetManager (  ) 

Definition at line 61 of file MyGUI_WidgetManager.cpp.

MyGUI::WidgetManager::~WidgetManager (  ) 

Definition at line 61 of file MyGUI_WidgetManager.cpp.


Member Function Documentation

MyGUI::WidgetManager::__declspec ( deprecated("use : void Widget::setProperty(const std::string &_key, const std::string &_value)")   ) 
Deprecated:
"use : void Widget::setProperty(const std::string &_key, const std::string &_value)"
MyGUI::WidgetManager::__declspec ( deprecated("use : void WidgetManager::destroyWidgets(VectorWidgetPtr &_widgets)")   )  [inline]
Deprecated:
"use : void WidgetManager::destroyWidgets(VectorWidgetPtr &_widgets)"

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.

template<typename T >
MyGUI::WidgetManager::MYGUI_OBSOLETE_START ( ""   )  const [inline]
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.


Field Documentation

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.

Definition at line 116 of file MyGUI_WidgetManager.h.

Definition at line 114 of file MyGUI_WidgetManager.h.

Definition at line 122 of file MyGUI_WidgetManager.h.

Definition at line 119 of file MyGUI_WidgetManager.h.


The documentation for this class was generated from the following files:

Generated on 3 Dec 2009 for MyGUI by  doxygen 1.6.1