19 mXmlLayoutTagName(
"Layout"),
20 mSingletonHolder(this)
50 mIsInitialise =
false;
61 mCurrentLayoutName = _file;
74 MYGUI_LOG(Warning,
"Layout '" << _file <<
"' couldn't be loaded");
76 mCurrentLayoutName.clear();
91 if (result !=
nullptr)
94 if (resource ==
nullptr)
96 MYGUI_ASSERT(!_throw,
"Resource '" << skinName <<
"' is not ResourceLayout type");
101 MYGUI_ASSERT(!_throw,
"ResourceLayout '" << skinName <<
"' not found");
107 return mCurrentLayoutName;
112 return getByName(_name,
false) !=
nullptr;
#define MYGUI_ASSERT(exp, dest)
#define MYGUI_LOG(level, text)
#define MYGUI_SINGLETON_DEFINITION(ClassName)
static std::string_view getSkinRename(std::string_view _skinName)
void registerFactory(std::string_view _category, std::string_view _type, Delegate::IDelegate *_delegate)
static FactoryManager & getInstance()
void unregisterFactory(std::string_view _category, std::string_view _type)
Type * castType(bool _throw=true)
void unloadLayout(VectorWidgetPtr &_widgets)
const std::string & getCurrentLayout() const
ResourceLayout * getByName(std::string_view _name, bool _throw=true) const
bool isExist(std::string_view _name) const
VectorWidgetPtr loadLayout(std::string_view _file, std::string_view _prefix={}, Widget *_parent=nullptr)
static std::string_view getClassTypeName()
VectorWidgetPtr createLayout(std::string_view _prefix={}, Widget *_parent=nullptr)
void unregisterLoadXmlDelegate(std::string_view _key)
const std::string & getCategoryName() const
LoadXmlDelegate & registerLoadXmlDelegate(std::string_view _key)
IResource * getByName(std::string_view _name, bool _throw=true) const
bool load(const std::string &_file)
static ResourceManager & getInstance()
void addResource(IResourcePtr _item)
delegates::DelegateFunction< Args... > * newDelegate(void(*_func)(Args... args))
std::vector< Widget * > VectorWidgetPtr