MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / InputTextWithHint

Method InputTextWithHint

modules/render/imgui/src/imgui_utils.cpp:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57bool ImGui::InputTextWithHint(const char* label, const char* hint, skr::String* str, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
58{
59 IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0);
60 flags |= ImGuiInputTextFlags_CallbackResize;
61
62 InputTextCallback_UserData cb_user_data;
63 cb_user_data.Str = str;
64 cb_user_data.ChainCallback = callback;
65 cb_user_data.ChainCallbackUserData = user_data;
66 return InputTextWithHint(label, hint, (char*)str->c_str(), str->raw().get_capacity() + 1, flags, InputTextCallback, &cb_user_data);
67}

Callers

nothing calls this directly

Calls 3

c_strMethod · 0.45
get_capacityMethod · 0.45
rawMethod · 0.45

Tested by

no test coverage detected