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

Method getPropertyByName

Tools/EditorFramework/PropertyUtility.cpp:78–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 }
77
78 PropertyPtr PropertyUtility::getPropertyByName(
79 DataPtr _data,
80 std::string_view _dataType,
81 std::string_view _propertyName)
82 {
83 if (_data == nullptr)
84 return nullptr;
85
86 if (_data->getType()->getName() == _dataType)
87 return _data->getProperty(_propertyName);
88
89 return getPropertyByName(_data->getChildSelected(), _dataType, _propertyName);
90 }
91
92 PropertyPtr PropertyUtility::getPropertyByName(std::string_view _dataType, std::string_view _propertyName)
93 {

Callers

nothing calls this directly

Calls 4

getChildSelectedMethod · 0.80
getTypeMethod · 0.45
getPropertyMethod · 0.45
getRootMethod · 0.45

Tested by

no test coverage detected