20 mXmlLayoutTagName(
"Layout"),
21 mSingletonHolder(this)
50 mIsInitialise =
false;
61 mCurrentLayoutName = _file;
74 MYGUI_LOG(Warning,
"Layout '" << _file <<
"' couldn't be loaded");
76 mCurrentLayoutName =
"";
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)
static std::string getSkinRename(const std::string &_skinName)
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)
Type * castType(bool _throw=true)
void unloadLayout(VectorWidgetPtr &_widgets)
VectorWidgetPtr loadLayout(const std::string &_file, const std::string &_prefix="", Widget *_parent=nullptr)
const std::string & getCurrentLayout() const
bool isExist(const std::string &_name) const
static const char * getClassTypeName()
ResourceLayout * getByName(const std::string &_name, bool _throw=true) const
VectorWidgetPtr createLayout(const std::string &_prefix="", Widget *_parent=nullptr)
const std::string & getCategoryName() const
IResource * getByName(const std::string &_name, bool _throw=true) const
bool load(const std::string &_file)
void unregisterLoadXmlDelegate(const std::string &_key)
static ResourceManager & getInstance()
LoadXmlDelegate & registerLoadXmlDelegate(const std::string &_key)
void addResource(IResourcePtr _item)
std::vector< Widget * > VectorWidgetPtr
delegates::DelegateFunction< Args... > * newDelegate(void(*_func)(Args... args))
MYGUI_SINGLETON_DEFINITION(ClipboardManager)