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

Method getPropertyField

Tools/LayoutEditor/PanelMainProperties.cpp:288–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286 }
287
288 IPropertyField* PanelMainProperties::getPropertyField(
289 MyGUI::Widget* _client,
290 std::string_view _name,
291 std::string_view _type)
292 {
293 MapPropertyField::iterator item = mFields.find(_name);
294 if (item != mFields.end())
295 {
296 (*item).second->setVisible(true);
297 return (*item).second;
298 }
299
300 IPropertyField* result = PropertyFieldManager::getInstance().createPropertyField(_client, _type);
301 result->setName(_name);
302 result->eventAction = MyGUI::newDelegate(this, &PanelMainProperties::notifyAction);
303
304 mFields.emplace(_name, result);
305
306 return result;
307 }
308
309 void PanelMainProperties::hidePropertyFields()
310 {

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