| 58 | } |
| 59 | |
| 60 | inline Result InputTextMultiline(const char* name, Buffer& buffer, String& str, ImVec2 size, bool& modified) |
| 61 | { |
| 62 | SC_TRY(Internal::PrepareInputTextBuffer(buffer, str)); |
| 63 | if (ImGui::InputTextMultiline(name, buffer.data(), buffer.size(), size, ImGuiInputTextFlags_CallbackResize, |
| 64 | Internal::InputTextFuncs::MyResizeCallback, &buffer)) |
| 65 | { |
| 66 | modified = true; |
| 67 | SC_TRY(str.assign(StringView::fromNullTerminated(buffer.data(), StringEncoding::Utf8))); |
| 68 | } |
| 69 | return Result(true); |
| 70 | } |
| 71 | } // namespace SC |
no test coverage detected