mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-13 01:10:45 +00:00
More console method docs
More documentation for console methods in doxygen format.
This commit is contained in:
parent
a6510190bb
commit
dd9b788ab4
1 changed files with 5 additions and 2 deletions
|
|
@ -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 ) );
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue