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

Method SetText

Source/TextEntry.cpp:490–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488}
489
490void TextEntry::SetText(std::string text)
491{
492 if (mVarCString)
493 StringCopy(mVarCString, text.c_str(), MAX_TEXTENTRY_LENGTH);
494 if (mVarString)
495 *mVarString = text;
496 mCaretPosition = 0;
497 mCaretPosition2 = 0;
498}
499
500void TextEntry::SetFromMidiCC(float slider, double time, bool setViaModulator)
501{

Callers 4

oscMessageReceivedMethod · 0.45
PollMethod · 0.45
ButtonClickedMethod · 0.45
SetSnapshotMethod · 0.45

Calls 1

StringCopyFunction · 0.85

Tested by

no test coverage detected