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

Method flipList

MyGUIEngine/src/MyGUI_MultiListBox.cpp:345–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343 }
344
345 void MultiListBox::flipList()
346 {
347 if (ITEM_NONE == mSortColumnIndex)
348 return;
349
350 size_t last = mVectorColumnInfo.front().list->getItemCount();
351 if (0 == last)
352 return;
353 last--;
354 size_t first = 0;
355
356 while (first < last)
357 {
358 BiIndexBase::swapItemsBackAt(first, last);
359 for (auto& iter : mVectorColumnInfo)
360 {
361 iter.list->swapItemsAt(first, last);
362 }
363
364 first++;
365 last--;
366 }
367
368 updateBackSelected(BiIndexBase::convertToBack(mItemSelected));
369 }
370
371 bool MultiListBox::compare(ListBox* _list, size_t _left, size_t _right)
372 {

Callers

nothing calls this directly

Calls 2

getItemCountMethod · 0.45
swapItemsAtMethod · 0.45

Tested by

no test coverage detected