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

Method InputTextWithHint

src/imgui/imgui_stdlib.cpp:72–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72bool ImGui::InputTextWithHint(const char* label, const char* hint, std::string* str, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
73{
74 IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0);
75 flags |= ImGuiInputTextFlags_CallbackResize;
76
77 InputTextCallback_UserData cb_user_data;
78 cb_user_data.Str = str;
79 cb_user_data.ChainCallback = callback;
80 cb_user_data.ChainCallbackUserData = user_data;
81 return InputTextWithHint(label, hint, (char*)str->c_str(), str->capacity() + 1, flags, InputTextCallback, &cb_user_data);
82}
83
84#if defined(__clang__)
85#pragma clang diagnostic pop

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.45
capacityMethod · 0.45

Tested by

no test coverage detected