Go to the documentation of this file.
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;
static FactoryManager & getInstance()
EventHandle_FrameEventDelegate eventFrameStart
MultiListItem properties. Skin childs. MultiListItem widget description should be here.
ListBox properties. Skin childs. ListBox widget description should be here.
void unregisterFactory(const std::string &_category, const std::string &_type)
void destroyWidget(Widget *_widget)
ImageBox properties. Skin childs. ImageBox widget description should be here.
EditBox properties. Skin childs. EditBox widget description should be here.
ProgressBar properties. Skin childs. ProgressBar widget description should be here.
static const char * getClassTypeName()
Window properties. Skin childs. Window widget description should be here.
MultiListBox properties. Skin childs. MultiListBox widget description should be here.
void registerFactory(const std::string &_category, const std::string &_type, Delegate::IDelegate *_delegate)
static void registerWidgetTypes()
delegates::DelegateFunction< Args... > * newDelegate(void(*_func)(Args... args))
Canvas properties. Skin childs. Widget wrapper over Texture - shows the texture. Implemented: resizin...
#define MYGUI_EXCEPT(dest)
ItemBox properties. Skin childs. ItemBox widget description should be here.
TextBox properties. Skin childs. TextBox widget description should be here.
void destroyWidgets(const VectorWidgetPtr &_widgets)
#define MYGUI_ASSERT(exp, dest)
Type * castType(bool _throw=true)
#define MYGUI_LOG(level, text)
IObject * createObject(const std::string &_category, const std::string &_type)
TabItem properties. Skin childs. TabItem widget description should be here.
DDContainer properties. Skin childs. DDContainer widget description should be here.
std::vector< Widget * > VectorWidgetPtr
ComboBox properties. Skin childs. ComboBox widget description should be here.
TabControl properties. Skin childs. TabControl widget description should be here.