23 #ifndef __MYGUI_WIDGET_MANAGER_H__
24 #define __MYGUI_WIDGET_MANAGER_H__
57 void destroyWidget(
Widget* _widget);
68 void unlinkFromUnlinkers(
Widget* _widget);
71 void addWidgetToUnlink(
Widget* _widget);
74 void removeWidgetFromUnlink(
Widget*& _widget);
76 bool isFactoryExist(
const std::string& _type);
79 #ifndef MYGUI_DONT_USE_OBSOLETE
81 MYGUI_OBSOLETE(
"use : void WidgetManager::destroyWidgets(VectorWidgetPtr &_widgets)")
82 void destroyWidgetsVector(
VectorWidgetPtr &_widgets) { destroyWidgets(_widgets); }
84 Widget* findWidgetT(const std::
string& _name,
bool _throw = true);
86 Widget* findWidgetT(const std::
string& _name, const std::
string& _prefix,
bool _throw = true);
91 MYGUI_OBSOLETE("use :
void Widget::setProperty(const std::
string &_key, const std::
string &_value)")
92 void parse(
Widget* _widget, const std::
string &_key, const std::
string &_value);
96 void unregisterDelegate(const std::
string& _key);
100 T* findWidget(const std::
string& _name,
bool _throw = true)
102 Widget* widget = findWidgetT(_name, _throw);
103 if (
nullptr == widget)
return nullptr;
107 template <
typename T>
109 T* findWidget(const std::
string& _name, const std::
string& _prefix,
bool _throw = true)
111 return findWidget<T>(_prefix + _name, _throw);
114 #endif // MYGUI_DONT_USE_OBSOLETE
130 #endif // __MYGUI_WIDGET_MANAGER_H__