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

Method redrawButtons

MyGUIEngine/src/MyGUI_MultiListBox.cpp:283–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281 }
282
283 void MultiListBox::redrawButtons()
284 {
285 size_t pos = 0;
286 for (auto& iter : mVectorColumnInfo)
287 {
288 if (pos == mSortColumnIndex)
289 {
290 if (mSortUp)
291 iter.button->setImageName("Up");
292 else
293 iter.button->setImageName("Down");
294 }
295 else
296 iter.button->setImageName("None");
297
298 iter.button->setCaption(iter.name);
299 pos++;
300 }
301 }
302
303 void MultiListBox::frameEntered(float _frame)
304 {

Callers

nothing calls this directly

Calls 2

setImageNameMethod · 0.80
setCaptionMethod · 0.45

Tested by

no test coverage detected