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

Method getItemText

Engine/source/gui/controls/guiListBoxCtrl.cpp:877–887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

875}
876
877StringTableEntry GuiListBoxCtrl::getItemText( S32 index )
878{
879 // Range Checking
880 if( index > mItems.size() || index < 0 )
881 {
882 Con::warnf( "GuiListBoxCtrl::getItemText - index out of range!" );
883 return StringTable->lookup("");
884 }
885
886 return mItems[ index ]->itemText;
887}
888
889DefineEngineMethod( GuiListBoxCtrl, getItemObject, const char*, (S32 index),,
890 "@brief Returns the object associated with an item. This only makes sense if you are mirroring a simset.\n\n"

Callers 2

guiListBoxCtrl.cppFile · 0.45

Calls 3

warnfFunction · 0.50
sizeMethod · 0.45
lookupMethod · 0.45

Tested by

no test coverage detected