MyGUI 3.0.1

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 ()
WidgetcreateWidget (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)
WidgetfindWidgetT (const std::string &_name, bool _throw=true)
WidgetfindWidgetT (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)
ParseDelegateregisterDelegate (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 WidgetManagergetInstance ()
static WidgetManagergetInstancePtr ()

Protected Attributes

SetWidgetFactory mFactoryList
MapDelegate mDelegates
VectorIUnlinkWidget mVectorIUnlinkWidget
VectorWidgetPtr mUnlinkWidgets

Detailed Description

Definition at line 40 of file MyGUI_WidgetManager.h.


Member Typedef Documentation

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

Definition at line 46 of file MyGUI_WidgetManager.h.

Definition at line 48 of file MyGUI_WidgetManager.h.


Constructor & Destructor Documentation

MyGUI::WidgetManager::WidgetManager ( )
MyGUI::WidgetManager::~WidgetManager ( )

Member Function Documentation

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]
Deprecated:
"use : void WidgetManager::destroyWidgets(VectorWidgetPtr &_widgets)"

Definition at line 82 of file MyGUI_WidgetManager.h.

template<typename T >
T* MyGUI::WidgetManager::findWidget ( const std::string &  _name,
bool  _throw = true 
) [inline]
Deprecated:
""

Definition at line 100 of file MyGUI_WidgetManager.h.

template<typename T >
T* MyGUI::WidgetManager::findWidget ( const std::string &  _name,
const std::string &  _prefix,
bool  _throw = true 
) [inline]
Deprecated:
""

Definition at line 109 of file MyGUI_WidgetManager.h.

Widget * MyGUI::WidgetManager::findWidgetT ( const std::string &  _name,
bool  _throw = true 
)
Deprecated:
""

Definition at line 248 of file MyGUI_WidgetManager.cpp.

Widget * MyGUI::WidgetManager::findWidgetT ( const std::string &  _name,
const std::string &  _prefix,
bool  _throw = true 
)
Deprecated:
""

Definition at line 253 of file MyGUI_WidgetManager.cpp.

static WidgetManager& MyGUI::WidgetManager::getInstance ( ) [static]
static WidgetManager* MyGUI::WidgetManager::getInstancePtr ( ) [static]
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 
)
Deprecated:
"use : void Widget::setProperty(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)
Deprecated:
""

Definition at line 283 of file MyGUI_WidgetManager.cpp.

void MyGUI::WidgetManager::registerFactory ( IWidgetFactory _factory)
Deprecated:
""

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)
Deprecated:
""

Definition at line 290 of file MyGUI_WidgetManager.cpp.

void MyGUI::WidgetManager::unregisterFactory ( IWidgetFactory _factory)
Deprecated:
""

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.


Field Documentation

Definition at line 119 of file MyGUI_WidgetManager.h.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines