More console method docs

More documentation for console methods in doxygen format.
This commit is contained in:
Nathan Bowhay 2015-02-02 15:31:38 -08:00
parent a6510190bb
commit dd9b788ab4

View file

@ -695,9 +695,12 @@ bool GuiControlProfile::loadFont()
return true;
}
DefineConsoleMethod( GuiControlProfile, getStringWidth, S32, ( const char * pString ), , "( pString )" )
DefineEngineMethod( GuiControlProfile, getStringWidth, S32, (const char* string),,
"Get the width of the string in pixels.\n"
"@param string String to get the width of."
"@return width of the string in pixels." )
{
return object->mFont->getStrNWidth( pString, dStrlen( pString ) );
return object->mFont->getStrNWidth( string, dStrlen( string ) );
}
//-----------------------------------------------------------------------------