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

Method getTextContent

Engine/source/gui/controls/guiMLTextCtrl.cpp:562–572  ·  view source on GitHub ↗

--------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

560
561//--------------------------------------------------------------------------
562const char* GuiMLTextCtrl::getTextContent()
563{
564 if ( mTextBuffer.length() > 0 )
565 {
566 UTF8* returnString = Con::getReturnBuffer( mTextBuffer.getUTF8BufferSizeEstimate() );
567 mTextBuffer.getCopy8(returnString, mTextBuffer.getUTF8BufferSizeEstimate() );
568 return returnString;
569 }
570
571 return( "" );
572}
573
574//--------------------------------------------------------------------------
575const char *GuiMLTextCtrl::getScriptValue()

Callers 1

guiMLTextCtrl.cppFile · 0.80

Calls 4

getReturnBufferFunction · 0.85
getCopy8Method · 0.80
lengthMethod · 0.45

Tested by

no test coverage detected