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

Method removeAllItems

MyGUIEngine/src/MyGUI_ListBox.cpp:698–717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696 }
697
698 void ListBox::removeAllItems()
699 {
700 mTopIndex = 0;
701 mIndexSelect = ITEM_NONE;
702 mOffsetTop = 0;
703
704 mItemsInfo.clear();
705
706 int offset = 0;
707 for (auto& widgetLine : mWidgetLines)
708 {
709 widgetLine->setVisible(false);
710 widgetLine->setPosition(0, offset);
711 offset += mHeightLine;
712 }
713
714 // обновляем все
715 updateScroll();
716 updateLine(true);
717 }
718
719 void ListBox::setItemNameAt(size_t _index, const UString& _name)
720 {

Callers

nothing calls this directly

Calls 3

clearMethod · 0.45
setVisibleMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected