MCPcopy Create free account
hub / github.com/SpartanJ/eepp / removeAll

Method removeAll

src/eepp/ui/uimenu.cpp:262–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262void UIMenu::removeAll() {
263 for ( Uint32 i = 0; i < mItems.size(); i++ ) {
264 mItems[i]->close();
265 }
266 mItems.clear();
267 mNextPosY = 0;
268 mMaxWidth = 0;
269 resizeMe();
270}
271
272void UIMenu::insert( const String& text, Drawable* icon, const Uint32& index ) {
273 insert( createMenuItem( text, icon ), index );

Callers 5

updateRecentFilesMethod · 0.80
updateRecentProjectsMethod · 0.80
refreshLayoutListMethod · 0.80
updateRecentFilesMethod · 0.80
updateRecentFoldersMethod · 0.80

Calls 3

closeMethod · 0.65
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected