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. Skin childs. ComboBox widget description should be here.
void destroyWidget(Widget *_widget)
TabItem properties. Skin childs. TabItem widget description should be here.
ImageBox properties. Skin childs. ImageBox widget description should be here.
EventHandle_FrameEventDelegate eventFrameStart
ItemBox properties. Skin childs. ItemBox widget description should be here.
delegates::IDelegate0 * newDelegate(void(*_func)())
static FactoryManager & getInstance()
static const char * getClassTypeName()
ListBox properties. Skin childs. ListBox widget description should be here.
MultiListItem properties. Skin childs. MultiListItem widget description should be here...
#define MYGUI_LOG(level, text)
EditBox properties. Skin childs. EditBox widget description should be here.
#define MYGUI_EXCEPT(dest)
void destroyWidgets(const VectorWidgetPtr &_widgets)
ProgressBar properties. Skin childs. ProgressBar widget description should be here.
std::vector< Widget * > VectorWidgetPtr
#define MYGUI_ASSERT(exp, dest)
DDContainer properties. Skin childs. DDContainer widget description should be here.
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. Skin childs. MultiListBox widget description should be here.
TextBox properties. Skin childs. TextBox widget description should be here.
Canvas properties. Skin childs. Widget wrapper over Texture - shows the texture. Implemented: resizin...
Window properties. Skin childs. Window widget description should be here.
TabControl properties. Skin childs. TabControl widget description should be here. ...
IObject * createObject(const std::string &_category, const std::string &_type)