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

Method sortID

Engine/source/gui/controls/guiPopUpCtrl.cpp:621–631  ·  view source on GitHub ↗

Added to sort by entry ID ------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

619// Added to sort by entry ID
620//------------------------------------------------------------------------------
621void GuiPopUpMenuCtrl::sortID()
622{
623 S32 selId = getSelected();
624
625 S32 size = mEntries.size();
626 if( size > 0 )
627 dQsort( mEntries.address(), size, sizeof(Entry), idCompare);
628
629 if( selId != -1 )
630 setSelected( selId, false );
631}
632
633//------------------------------------------------------------------------------
634void GuiPopUpMenuCtrl::addEntry( const char *buf, S32 id, U32 scheme )

Callers 1

guiPopUpCtrl.cppFile · 0.45

Calls 4

getSelectedFunction · 0.85
dQsortFunction · 0.85
sizeMethod · 0.45
addressMethod · 0.45

Tested by

no test coverage detected