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

Method removeAllItems

MyGUIEngine/src/MyGUI_ItemBox.cpp:388–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386 }
387
388 void ItemBox::removeAllItems()
389 {
390 if (mItemsInfo.empty())
391 return;
392 _resetContainer(false);
393
394 mItemsInfo.clear();
395
396 mIndexSelect = ITEM_NONE;
397 mIndexActive = ITEM_NONE;
398
399 updateScrollSize();
400 updateScrollPosition();
401
402 _updateAllVisible(true);
403 }
404
405 void ItemBox::redrawItemAt(size_t _index)
406 {

Calls 2

emptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected