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

Method update

Tools/LayoutEditor/PanelExtensionProperties.cpp:54–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 void PanelExtensionProperties::update(MyGUI::Widget* _currentWidget)
55 {
56 destroyPropertyFields();
57
58 mCurrentWidget = _currentWidget;
59 if (mCurrentWidget == nullptr)
60 return;
61
62 WidgetContainer* widgetContainer = EditorWidgets::getInstance().find(_currentWidget);
63 WidgetStyle* widgetType = WidgetTypes::getInstance().findWidgetStyle(widgetContainer->getType());
64
65 AddParametrs(widgetType, widgetContainer, mCurrentWidget);
66
67 bool visible = !mFields.empty();
68 setVisible(visible);
69
70 updateSize();
71 }
72
73 void PanelExtensionProperties::updateSize()
74 {

Callers

nothing calls this directly

Calls 5

setVisibleFunction · 0.85
findWidgetStyleMethod · 0.80
findMethod · 0.45
getTypeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected