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;
ComboBox properties. ComboBox_skin_childs Skin childs. ComboBox widget description should be here...
void destroyWidget(Widget *_widget)
TabItem properties. TabItem_skin_childs Skin childs. TabItem widget description should be here...
ImageBox properties. ImageBox_skin_childs Skin childs. ImageBox widget description should be here...
EventHandle_FrameEventDelegate eventFrameStart
ItemBox properties. ItemBox_skin_childs Skin childs. ItemBox widget description should be here...
delegates::IDelegate0 * newDelegate(void(*_func)())
static FactoryManager & getInstance()
static const char * getClassTypeName()
ListBox properties. ListBox_skin_childs Skin childs. ListBox widget description should be here...
MultiListItem properties. MultiListItem_skin_childs Skin childs. MultiListItem widget description sh...
#define MYGUI_LOG(level, text)
EditBox properties. EditBox_skin_childs Skin childs. EditBox widget description should be here...
#define MYGUI_EXCEPT(dest)
void destroyWidgets(const VectorWidgetPtr &_widgets)
ProgressBar properties. ProgressBar_skin_childs Skin childs. ProgressBar widget description should b...
std::vector< Widget * > VectorWidgetPtr
#define MYGUI_ASSERT(exp, dest)
DDContainer properties. DDContainer_skin_childs Skin childs. DDContainer widget description should b...
Type * castType(bool _throw=true)
void unregisterFactory(const std::string &_category, const std::string &_type)
void registerFactory(const std::string &_category, const std::string &_type, Delegate::IDelegate *_delegate)
static void registerWidgetTypes()
MultiListBox properties. MultiListBox_skin_childs Skin childs. MultiListBox widget description shoul...
TextBox properties. TextBox_skin_childs Skin childs. TextBox widget description should be here...
Canvas properties. Canvas_skin_childs Skin childs. Widget wrapper over Texture - shows the texture...
Window properties. Window_skin_childs Skin childs. Window widget description should be here...
TabControl properties. TabControl_skin_childs Skin childs. TabControl widget description should be h...
IObject * createObject(const std::string &_category, const std::string &_type)