| 373 | }; |
| 374 | |
| 375 | void WindowTextInputRawOpen( |
| 376 | WindowBase* call_w, WidgetIndex call_widget, StringId title, StringId description, const Formatter& descriptionArgs, |
| 377 | const_utf8string existing_text, int32_t maxLength) |
| 378 | { |
| 379 | auto* windowMgr = GetWindowManager(); |
| 380 | windowMgr->CloseByClass(WindowClass::textinput); |
| 381 | |
| 382 | auto w = windowMgr->Create<TextInputWindow>( |
| 383 | WindowClass::textinput, { kWindowSize.width, kWindowSize.height + 10 }, |
| 384 | { WindowFlag::centreScreen, WindowFlag::stickToFront }); |
| 385 | if (w != nullptr) |
| 386 | { |
| 387 | w->setParentWindow(call_w, call_widget); |
| 388 | w->setTitle(title, description, descriptionArgs); |
| 389 | w->setText(existing_text, maxLength); |
| 390 | } |
| 391 | } |
| 392 | |
| 393 | void WindowTextInputOpen( |
| 394 | std::string_view title, std::string_view description, std::string_view initialValue, size_t maxLength, |
no test coverage detected