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

Method _notifyUpdateName

MyGUIEngine/src/MyGUI_MenuControl.cpp:260–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258 }
259
260 void MenuControl::_notifyUpdateName(MenuItem* _item)
261 {
262 size_t index = getItemIndex(_item);
263 mItemsInfo[index].name = _item->getCaption();
264
265 ISubWidgetText* text = _item->getSubWidgetText();
266 mItemsInfo[index].width = text ? (text->getTextSize().width + _item->getSize().width - text->getWidth()) : 0;
267 update();
268 }
269
270 MenuItemType MenuControl::getItemTypeAt(size_t _index) const
271 {

Callers 3

setCaptionMethod · 0.80
setFontNameMethod · 0.80
setFontHeightMethod · 0.80

Calls 4

getSubWidgetTextMethod · 0.80
getTextSizeMethod · 0.45
getSizeMethod · 0.45
getWidthMethod · 0.45

Tested by

no test coverage detected