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

Method setEntry

Engine/source/gui/controls/guiTextListCtrl.cpp:288–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void GuiTextListCtrl::setEntry(U32 id, const char *text)
289{
290 S32 e = findEntryById(id);
291 if(e == -1)
292 addEntry(id, text);
293 else
294 {
295 dFree(mList[e].text);
296 mList[e].text = dStrdup(text);
297
298 // Still have to call this to make sure cells are wide enough for new values:
299 setSize( Point2I( 1, mList.size() ) );
300 }
301 setUpdate();
302}
303
304void GuiTextListCtrl::setEntryActive(U32 id, bool active)
305{

Callers 1

Calls 3

dFreeFunction · 0.50
Point2IClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected