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

Method setUserData

Tools/LayoutEditor/WidgetContainer.cpp:61–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 }
60
61 void WidgetContainer::setUserData(std::string_view _key, std::string_view _value)
62 {
63 bool found = false;
64
65 for (auto& item : mUserString)
66 {
67 if (item.first == _key)
68 {
69 found = true;
70 item.second = _value;
71 break;
72 }
73 }
74
75 if (!found)
76 mUserString.emplace_back(_key, _value);
77 }
78
79 std::string_view WidgetContainer::getUserData(std::string_view _key)
80 {

Callers 15

BaseWidget.hFile · 0.45
BaseItemBoxMethod · 0.45
addConnectionMethod · 0.45
requestCreateWidgetItemFunction · 0.45
validateMethod · 0.45
notifyAddUserDataMethod · 0.45
notifyUpdateUserDataMethod · 0.45
parseWidgetMethod · 0.45
notifyActionTypeMethod · 0.45
notifyActionTemplateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected