MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / removeItem

Method removeItem

Engine/source/gui/editor/popupMenu.cpp:214–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void PopupMenu::removeItem(S32 itemPos)
215{
216 if (mMenuItems.empty() || mMenuItems.size() < itemPos || itemPos < 0)
217 return;
218
219 mMenuItems.erase(itemPos);
220}
221
222//////////////////////////////////////////////////////////////////////////
223void PopupMenu::enableItem(S32 pos, bool enable)

Callers 1

popupMenu.cppFile · 0.45

Calls 3

emptyMethod · 0.45
sizeMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected