41 template <> WidgetManager* Singleton<WidgetManager>::msInstance =
nullptr;
42 template <>
const char* Singleton<WidgetManager>::mClassTypeName =
"WidgetManager";
46 mCategoryName(
"Widget")
96 mVectorIUnlinkWidget.clear();
101 mIsInitialise =
false;
107 if (
object !=
nullptr)
110 widget->
_initialise(_style, _coord, _skin, _parent, _cropeedParent, _name);
136 mVectorIUnlinkWidget.push_back(_unlink);
141 VectorIUnlinkWidget::iterator iter = std::remove(mVectorIUnlinkWidget.begin(), mVectorIUnlinkWidget.end(), _unlink);
142 if (iter != mVectorIUnlinkWidget.end())
143 mVectorIUnlinkWidget.erase(iter);
148 for (VectorIUnlinkWidget::iterator iter = mVectorIUnlinkWidget.begin(); iter != mVectorIUnlinkWidget.end(); ++iter)
150 (*iter)->_unlinkWidget(_widget);
164 void WidgetManager::notifyEventFrameStart(
float _time)
173 for (VectorWidgetPtr::iterator entry = mDestroyWidgets.begin(); entry != mDestroyWidgets.end(); ++entry)
177 MYGUI_ASSERT((*entry) != _widget,
"double delete widget");
180 mDestroyWidgets.push_back(_widget);
185 if (!mDestroyWidgets.empty())
187 for (VectorWidgetPtr::iterator entry = mDestroyWidgets.begin(); entry != mDestroyWidgets.end(); ++entry)
189 mDestroyWidgets.clear();
195 return mCategoryName;