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

Method InputText

src/imgui/imgui_stdlib.cpp:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48bool ImGui::InputText(const char* label, std::string* str, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
49{
50 IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0);
51 flags |= ImGuiInputTextFlags_CallbackResize;
52
53 InputTextCallback_UserData cb_user_data;
54 cb_user_data.Str = str;
55 cb_user_data.ChainCallback = callback;
56 cb_user_data.ChainCallbackUserData = user_data;
57 return InputText(label, (char*)str->c_str(), str->capacity() + 1, flags, InputTextCallback, &cb_user_data);
58}
59
60bool ImGui::InputTextMultiline(const char* label, std::string* str, const ImVec2& size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
61{

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.45
capacityMethod · 0.45

Tested by

no test coverage detected