MCPcopy Create free account
hub / github.com/bluescan/tacentview / InputTextWithHint

Method InputTextWithHint

Contrib/imgui/misc/cpp/imgui_stdlib.cpp:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected