MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / GetIDWithSeed

Method GetIDWithSeed

Dependencies/ImGui/src/imgui.cpp:9875–9884  ·  view source on GitHub ↗

Helper to avoid a common series of PushOverrideID -> GetID() -> PopID() call (note that when using this pattern, ID Stack Tool will tend to not display the intermediate stack level. for that to work we would need to do PushOverrideID() -> ItemAdd() -> PopID() which would alter widget code a little more)

Source from the content-addressed store, hash-verified

9873// (note that when using this pattern, ID Stack Tool will tend to not display the intermediate stack level.
9874// for that to work we would need to do PushOverrideID() -> ItemAdd() -> PopID() which would alter widget code a little more)
9875ImGuiID ImGui::GetIDWithSeed(const char* str, const char* str_end, ImGuiID seed)
9876{
9877 ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed);
9878#ifndef IMGUI_DISABLE_DEBUG_TOOLS
9879 ImGuiContext& g = *GImGui;
9880 if (g.DebugHookIdInfoId == id)
9881 DebugHookIdInfo(id, ImGuiDataType_String, str, str_end);
9882#endif
9883 return id;
9884}
9885
9886ImGuiID ImGui::GetIDWithSeed(int n, ImGuiID seed)
9887{

Callers

nothing calls this directly

Calls 2

ImHashStrFunction · 0.85
ImHashDataFunction · 0.85

Tested by

no test coverage detected