MCPcopy Create free account
hub / github.com/Raais/ImStudio / InputText

Method InputText

src/third-party/imgui/misc/cpp/imgui_stdlib.cpp:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38bool ImGui::InputText(const char* label, std::string* str, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
39{
40 IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0);
41 flags |= ImGuiInputTextFlags_CallbackResize;
42
43 InputTextCallback_UserData cb_user_data;
44 cb_user_data.Str = str;
45 cb_user_data.ChainCallback = callback;
46 cb_user_data.ChainCallbackUserData = user_data;
47 return InputText(label, (char*)str->c_str(), str->capacity() + 1, flags, InputTextCallback, &cb_user_data);
48}
49
50bool ImGui::InputTextMultiline(const char* label, std::string* str, const ImVec2& size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
51{

Callers

nothing calls this directly

Calls 2

capacityMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected