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

Method deserialization

UnitTests/UnitTest_RTTLayer/MyGUI_RTTLayer.cpp:28–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 void RTTLayer::deserialization(xml::ElementPtr _node, Version _version)
29 {
30 Base::deserialization(_node, _version);
31
32 MyGUI::xml::ElementEnumerator propert = _node->getElementEnumerator();
33 while (propert.next("Property"))
34 {
35 std::string_view key = propert->findAttribute("key");
36 std::string_view value = propert->findAttribute("value");
37 if (key == "TextureSize")
38 setTextureSize(utility::parseValue<IntSize>(value));
39 if (key == "TextureName")
40 setTextureName(value);
41 }
42 }
43
44 void RTTLayer::renderToTarget(IRenderTarget* _target, bool _update)
45 {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected