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

Method getPropertyField

Tools/LayoutEditor/PanelProperties.cpp:135–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 }
134
135 IPropertyField* PanelProperties::getPropertyField(
136 MyGUI::Widget* _client,
137 std::string_view _name,
138 std::string_view _type)
139 {
140 MapPropertyField::iterator item = mFields.find(_name);
141 if (item != mFields.end())
142 {
143 (*item).second->setVisible(true);
144 return (*item).second;
145 }
146
147 IPropertyField* result = PropertyFieldManager::getInstance().createPropertyField(_client, _type);
148 result->setName(_name);
149 result->eventAction = MyGUI::newDelegate(this, &PanelProperties::notifyAction);
150
151 mFields.emplace(_name, result);
152
153 return result;
154 }
155
156}

Callers

nothing calls this directly

Calls 6

newDelegateFunction · 0.85
createPropertyFieldMethod · 0.80
findMethod · 0.45
endMethod · 0.45
setVisibleMethod · 0.45
setNameMethod · 0.45

Tested by

no test coverage detected