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

Method setProperty

Tools/LayoutEditor/WidgetContainer.cpp:116–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 }
115
116 void WidgetContainer::setProperty(std::string_view _key, std::string_view _value, bool _eraseExist)
117 {
118 bool found = false;
119
120 if (_eraseExist)
121 {
122 for (auto& item : mProperty)
123 {
124 if (item.first == _key)
125 {
126 found = true;
127 item.second = _value;
128 break;
129 }
130 }
131 }
132
133 if (!found)
134 mProperty.emplace_back(_key, _value);
135 }
136
137 std::string_view WidgetContainer::getProperty(std::string_view _key)
138 {

Callers 6

parseWidgetMethod · 0.45
tryToApplyPropertyMethod · 0.45
onActionMethod · 0.45
setContainerPropertyMethod · 0.45
addPropertyValueMethod · 0.45
notifyActionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected