MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / setMenu

Method setMenu

src/ui/menu.cpp:232–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232void MenuBox::setMenu(Menu* menu)
233{
234 if (Menu* oldMenu = getMenu())
235 removeChild(oldMenu);
236
237 if (menu) {
238 ASSERT_VALID_WIDGET(menu);
239 addChild(menu);
240 }
241}
242
243void MenuItem::setSubmenu(Menu* menu)
244{

Callers 4

MainWindowMethod · 0.80
~MainWindowMethod · 0.80
showPopupMethod · 0.80
onProcessMessageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected