MCPcopy Create free account
hub / github.com/MrDrElliot/LuminaEngine / InputText

Method InputText

Engine/Source/ThirdParty/imgui/misc/cpp/imgui_stdlib.cpp:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 std::string* str = user_data->Str;
47 IM_ASSERT(data->Buf == str->c_str());
48 str->resize(data->BufTextLen);
49 data->Buf = (char*)str->c_str();
50 }
51 else if (user_data->ChainCallback)
52 {
53 // Forward to user callback, if any
54 data->UserData = user_data->ChainCallbackUserData;
55 return user_data->ChainCallback(data);
56 }
57 return 0;
58}
59
60bool ImGui::InputText(const char* label, std::string* str, 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