MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / UpdateDisplayString

Method UpdateDisplayString

Source/TextEntry.cpp:471–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471void TextEntry::UpdateDisplayString()
472{
473 if (mVarCString)
474 StringCopy(mString, mVarCString, MAX_TEXTENTRY_LENGTH);
475 if (mVarString)
476 StringCopy(mString, mVarString->c_str(), MAX_TEXTENTRY_LENGTH);
477 if (mVarInt)
478 StringCopy(mString, ofToString(*mVarInt).c_str(), MAX_TEXTENTRY_LENGTH);
479 if (mVarFloat)
480 StringCopy(mString, ofToString(*mVarFloat).c_str(), MAX_TEXTENTRY_LENGTH);
481}
482
483void TextEntry::ClearInput()
484{

Callers 2

ClearConsoleInputMethod · 0.80
OnClickedMethod · 0.80

Calls 2

StringCopyFunction · 0.85
ofToStringFunction · 0.85

Tested by

no test coverage detected