MCPcopy Create free account
hub / github.com/MyGUI/mygui / _load

Method _load

MyGUIEngine/src/MyGUI_FontManager.cpp:61–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 }
60
61 void FontManager::_load(xml::ElementPtr _node, std::string_view _file, Version _version)
62 {
63#ifndef MYGUI_DONT_USE_OBSOLETE
64 loadOldFontFormat(_node, _file, _version, mXmlFontTagName);
65#endif // MYGUI_DONT_USE_OBSOLETE
66
67 xml::ElementEnumerator node = _node->getElementEnumerator();
68 while (node.next())
69 {
70 if (node->getName() == mXmlPropertyTagName)
71 {
72 std::string_view key = node->findAttribute("key");
73 std::string_view value = node->findAttribute("value");
74#ifdef MYGUI_USE_FREETYPE
75 if (key == "Default")
76#else
77 if (key == "DefaultGenerated")
78#endif
79 mDefaultName = value;
80 }
81 }
82 }
83
84 void FontManager::setDefaultFont(std::string_view _value)
85 {

Callers

nothing calls this directly

Calls 3

getElementEnumeratorMethod · 0.80
findAttributeMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected