MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / addSelection

Method addSelection

Engine/source/gui/controls/guiListBoxCtrl.cpp:319–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319void GuiListBoxCtrl::addSelection( S32 index )
320{
321 // Range Check
322 if( index >= mItems.size() || index < 0 )
323 {
324 Con::warnf("GuiListBoxCtrl::addSelection- index out of range!" );
325 return;
326 }
327
328 addSelection( mItems[index], index );
329
330}
331void GuiListBoxCtrl::addSelection( LBItem *item, S32 index )
332{
333 if( !mMultipleSelections )

Callers 1

guiListBoxCtrl.cppFile · 0.45

Calls 5

warnfFunction · 0.50
sizeMethod · 0.45
emptyMethod · 0.45
frontMethod · 0.45
push_frontMethod · 0.45

Tested by

no test coverage detected