MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / InputTextWithHint

Method InputTextWithHint

imgui_tiny_app/imgui/misc/cpp/imgui_stdlib.cpp:84–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84bool ImGui::InputTextWithHint(const char* label, const char* hint, std::string* str, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
85{
86 IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0);
87 flags |= ImGuiInputTextFlags_CallbackResize;
88
89 InputTextCallback_UserData cb_user_data;
90 cb_user_data.Str = str;
91 cb_user_data.ChainCallback = callback;
92 cb_user_data.ChainCallbackUserData = user_data;
93 return InputTextWithHint(label, hint, (char*)str->c_str(), str->capacity() + 1, flags, InputTextCallback, &cb_user_data);
94}
95
96#if defined(__clang__)
97#pragma clang diagnostic pop

Callers

nothing calls this directly

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected