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

Method _unwrapItem

MyGUIEngine/src/MyGUI_MultiListBox.cpp:747–777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745 }
746
747 void MultiListBox::_unwrapItem(MultiListItem* _item)
748 {
749 for (VectorColumnInfo::iterator item = mVectorColumnInfo.begin(); item != mVectorColumnInfo.end(); ++item)
750 {
751 if ((*item).item == _item)
752 {
753 if ((*item).button != nullptr)
754 WidgetManager::getInstance().destroyWidget((*item).button);
755
756 mVectorColumnInfo.erase(item);
757 break;
758 }
759 }
760
761 if (mVectorColumnInfo.empty())
762 {
763 mSortColumnIndex = ITEM_NONE;
764 mItemSelected = ITEM_NONE;
765 }
766 else
767 {
768 mSortColumnIndex = ITEM_NONE;
769 mSortUp = true;
770 sortList();
771 }
772
773 updateColumns();
774
775 if (!mVectorColumnInfo.empty())
776 mVectorColumnInfo.back().list->setScrollVisible(true);
777 }
778
779 Widget* MultiListBox::_getItemAt(size_t _index) const
780 {

Callers

nothing calls this directly

Calls 6

setScrollVisibleMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
destroyWidgetMethod · 0.45
eraseMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected