MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / InputTextMultiline

Method InputTextMultiline

imgui_tiny_app/imgui/misc/cpp/imgui_stdlib.cpp:72–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72bool ImGui::InputTextMultiline(const char* label, std::string* str, const ImVec2& size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
73{
74 IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0);
75 flags |= ImGuiInputTextFlags_CallbackResize;
76
77 InputTextCallback_UserData cb_user_data;
78 cb_user_data.Str = str;
79 cb_user_data.ChainCallback = callback;
80 cb_user_data.ChainCallbackUserData = user_data;
81 return InputTextMultiline(label, (char*)str->c_str(), str->capacity() + 1, size, flags, InputTextCallback, &cb_user_data);
82}
83
84bool ImGui::InputTextWithHint(const char* label, const char* hint, std::string* str, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
85{

Callers

nothing calls this directly

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected