43 mCategoryName(
"Widget"),
44 mSingletonHolder(this)
94 mVectorIUnlinkWidget.clear();
99 mIsInitialise =
false;
104 std::string_view _type,
105 std::string_view _skin,
109 std::string_view _name)
112 if (
object !=
nullptr)
115 widget->
_initialise(_style, _coord, _skin, _parent, _cropeedParent, _name);
141 mVectorIUnlinkWidget.push_back(_unlink);
146 VectorIUnlinkWidget::iterator iter =
147 std::remove(mVectorIUnlinkWidget.begin(), mVectorIUnlinkWidget.end(), _unlink);
148 if (iter != mVectorIUnlinkWidget.end())
149 mVectorIUnlinkWidget.erase(iter);
154 for (
auto& iter : mVectorIUnlinkWidget)
156 iter->_unlinkWidget(_widget);
165 void WidgetManager::notifyEventFrameStart(
float _time)
174 for (
auto& widget : mDestroyWidgets)
178 MYGUI_ASSERT(widget != _widget,
"double delete widget");
181 mDestroyWidgets.push_back(_widget);
186 if (!mDestroyWidgets.empty())
188 for (
auto& widget : mDestroyWidgets)
190 mDestroyWidgets.clear();
196 return mCategoryName;
#define MYGUI_ASSERT(exp, dest)
#define MYGUI_EXCEPT(dest)
#define MYGUI_LOG(level, text)
#define MYGUI_SINGLETON_DEFINITION(ClassName)
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 registerFactory(std::string_view _category, std::string_view _type, Delegate::IDelegate *_delegate)
bool isFactoryExist(std::string_view _category, std::string_view _type)
static FactoryManager & getInstance()
void unregisterFactory(std::string_view _category, std::string_view _type)
IObject * createObject(std::string_view _category, std::string_view _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.
delegates::DelegateFunction< Args... > * newDelegate(void(*_func)(Args... args))
std::vector< Widget * > VectorWidgetPtr