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

Function InputText

Examples/SCExample/Examples/ImguiHelpers.h:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46} // namespace Internal
47
48inline Result InputText(const char* name, Buffer& buffer, String& str, bool& modified)
49{
50 SC_TRY(Internal::PrepareInputTextBuffer(buffer, str));
51 if (ImGui::InputText(name, buffer.data(), buffer.size(), ImGuiInputTextFlags_CallbackResize,
52 Internal::InputTextFuncs::MyResizeCallback, &buffer))
53 {
54 modified = true;
55 SC_TRY(str.assign(StringView::fromNullTerminated(buffer.data(), StringEncoding::Utf8)));
56 }
57 return Result(true);
58}
59
60inline Result InputTextMultiline(const char* name, Buffer& buffer, String& str, ImVec2 size, bool& modified)
61{

Callers 3

drawInternalMethod · 0.85
drawMethod · 0.85
drawMethod · 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