| 260 | } |
| 261 | |
| 262 | void 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 | |
| 272 | void UIMenu::insert( const String& text, Drawable* icon, const Uint32& index ) { |
| 273 | insert( createMenuItem( text, icon ), index ); |
no test coverage detected