MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / textInput

Function textInput

src/AsyncDialog.cpp:280–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278};
279
280void textInput(const char* const message, const char* const text, std::function<void(char* newText)> action)
281{
282 MenuOverlay* const overlay = new MenuOverlay;
283 overlay->bgColor = nvgRGBAf(0, 0, 0, 0.33);
284
285 AsyncTextInput* const dialog = new AsyncTextInput(message, text, action);
286 overlay->addChild(dialog);
287
288 APP->scene->addChild(overlay);
289}
290
291}

Callers 7

async_dialog_text_inputFunction · 0.85
async_dialog_text_inputFunction · 0.85
async_dialog_text_inputFunction · 0.85
async_dialog_text_inputFunction · 0.85
async_dialog_text_inputFunction · 0.85
async_dialog_text_inputFunction · 0.85
async_dialog_text_inputFunction · 0.85

Calls 2

nvgRGBAfFunction · 0.85
addChildMethod · 0.80

Tested by

no test coverage detected