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

Method swapItems

MyGUIEngine/src/MyGUI_TabControl.cpp:174–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172 }
173
174 void TabControl::swapItems(size_t _index1, size_t _index2)
175 {
176 MYGUI_ASSERT_RANGE(_index1, mItemsInfo.size(), "TabControl::swapItems");
177 MYGUI_ASSERT_RANGE(_index2, mItemsInfo.size(), "TabControl::swapItems");
178
179 if (_index1 != _index2)
180 {
181 std::swap(mItemsInfo[_index1], mItemsInfo[_index2]);
182 updateBar();
183 }
184 }
185
186 void TabControl::setPosition(const IntPoint& _point)
187 {

Calls 2

swapFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected