45 mCategoryName(
"Widget"),
46 mSingletonHolder(this)
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;
#define MYGUI_ASSERT(exp, dest)
#define MYGUI_EXCEPT(dest)
#define MYGUI_LOG(level, text)
static void registerWidgetTypes()
wrapper over Texture - shows the texture. Implemented: resizing of texture (see TextureResizeMode); r...
widget description should be here.
widget description should be here.
widget description should be here.
void unregisterFactory(const std::string &_category, const std::string &_type)
static FactoryManager & getInstance()
void registerFactory(const std::string &_category, const std::string &_type, Delegate::IDelegate *_delegate)
IObject * createObject(const std::string &_category, const std::string &_type)
void destroyWidget(Widget *_widget)
void destroyWidgets(const VectorWidgetPtr &_widgets)
static Gui & getInstance()
EventHandle_FrameEventDelegate eventFrameStart
Type * castType(bool _throw=true)
widget description should be here.
widget description should be here.
widget description should be here.
widget description should be here.
widget description should be here.
widget description should be here.
widget description should be here.
widget description should be here.
widget description should be here.
widget description should be here.
std::vector< Widget * > VectorWidgetPtr
delegates::DelegateFunction< Args... > * newDelegate(void(*_func)(Args... args))
MYGUI_SINGLETON_DEFINITION(ClipboardManager)