MCPcopy Create free account
hub / github.com/cinder/Cinder / InputTextMultiline

Method InputTextMultiline

src/imgui/imgui_stdlib.cpp:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60bool ImGui::InputTextMultiline(const char* label, std::string* str, const ImVec2& size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
61{
62 IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0);
63 flags |= ImGuiInputTextFlags_CallbackResize;
64
65 InputTextCallback_UserData cb_user_data;
66 cb_user_data.Str = str;
67 cb_user_data.ChainCallback = callback;
68 cb_user_data.ChainCallbackUserData = user_data;
69 return InputTextMultiline(label, (char*)str->c_str(), str->capacity() + 1, size, flags, InputTextCallback, &cb_user_data);
70}
71
72bool ImGui::InputTextWithHint(const char* label, const char* hint, std::string* str, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
73{

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.45
capacityMethod · 0.45

Tested by

no test coverage detected