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

Method deserialization

MyGUIEngine/src/MyGUI_ResourceManualPointer.cpp:16–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14{
15
16 void ResourceManualPointer::deserialization(xml::ElementPtr _node, Version _version)
17 {
18 Base::deserialization(_node, _version);
19
20 // берем детей и крутимся, основной цикл
21 xml::ElementEnumerator info = _node->getElementEnumerator();
22 while (info.next("Property"))
23 {
24 std::string_view key = info->findAttribute("key");
25 std::string_view value = info->findAttribute("value");
26
27 if (key == "Point")
28 mPoint = IntPoint::parse(value);
29 else if (key == "Size")
30 mSize = IntSize::parse(value);
31 else if (key == "Texture")
32 mTexture = value;
33 else if (key == "Coord")
34 mTextureCoord = IntCoord::parse(value);
35 }
36 }
37
38 void ResourceManualPointer::setImage(ImageBox* _image)
39 {

Callers

nothing calls this directly

Calls 5

getElementEnumeratorMethod · 0.80
findAttributeMethod · 0.80
deserializationFunction · 0.50
parseFunction · 0.50
nextMethod · 0.45

Tested by

no test coverage detected