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

Method AttemptTextInput

Source/Slider.cpp:687–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

685}
686
687bool FloatSlider::AttemptTextInput()
688{
689 if (mFloatEntry)
690 mFloatEntry->Delete();
691 mFloatEntry = new TextEntry(this, "", HIDDEN_UICONTROL, HIDDEN_UICONTROL, 10, mEntryString);
692 mFloatEntry->MakeActiveTextEntry(true);
693 mFloatEntry->SetRequireEnter(true);
694 mFloatEntry->ClearInput();
695 return true;
696}
697
698void FloatSlider::TextEntryComplete(TextEntry* entry)
699{

Callers 1

KeyPressedMethod · 0.45

Calls 4

MakeActiveTextEntryMethod · 0.80
SetRequireEnterMethod · 0.80
DeleteMethod · 0.45
ClearInputMethod · 0.45

Tested by

no test coverage detected