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

Method GetIDWithSeed

Dependencies/ImGui/src/imgui.cpp:9249–9258  ·  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

9247// (note that when using this pattern, ID Stack Tool will tend to not display the intermediate stack level.
9248// for that to work we would need to do PushOverrideID() -> ItemAdd() -> PopID() which would alter widget code a little more)
9249ImGuiID ImGui::GetIDWithSeed(const char* str, const char* str_end, ImGuiID seed)
9250{
9251 ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed);
9252#ifndef IMGUI_DISABLE_DEBUG_TOOLS
9253 ImGuiContext& g = *GImGui;
9254 if (g.DebugHookIdInfo == id)
9255 DebugHookIdInfo(id, ImGuiDataType_String, str, str_end);
9256#endif
9257 return id;
9258}
9259
9260ImGuiID ImGui::GetIDWithSeed(int n, ImGuiID seed)
9261{

Callers

nothing calls this directly

Calls 2

ImHashStrFunction · 0.85
ImHashDataFunction · 0.85

Tested by

no test coverage detected