MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / InputTextMultiline

Function InputTextMultiline

Examples/SCExample/Examples/ImguiHelpers.h:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60inline 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

Callers 1

drawInternalMethod · 0.85

Calls 6

PrepareInputTextBufferFunction · 0.85
fromNullTerminatedFunction · 0.85
ResultClass · 0.50
dataMethod · 0.45
sizeMethod · 0.45
assignMethod · 0.45

Tested by

no test coverage detected