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

Method update

Tools/LayoutEditor/PanelControllers.cpp:49–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49 void PanelControllers::update(MyGUI::Widget* _currentWidget)
50 {
51 destroyPropertyFields();
52
53 mCurrentWidget = _currentWidget;
54 if (mCurrentWidget == nullptr)
55 return;
56
57 WidgetContainer* widgetContainer = EditorWidgets::getInstance().find(_currentWidget);
58
59 mList->removeAllItems();
60 for (auto& iter : widgetContainer->mController)
61 {
62 mList->addItem(iter->mType, iter);
63 }
64
65 mPanelCell->setClientHeight(mButtonDelete->getCoord().bottom());
66 }
67
68 void PanelControllers::notifyChangeWidth(int _width)
69 {

Callers

nothing calls this directly

Calls 5

setClientHeightMethod · 0.80
bottomMethod · 0.80
findMethod · 0.45
removeAllItemsMethod · 0.45
addItemMethod · 0.45

Tested by

no test coverage detected