MCPcopy Create free account
hub / github.com/RenderKit/embree / GetIDWithSeed

Method GetIDWithSeed

tutorials/common/imgui/imgui.cpp:7809–7816  ·  view source on GitHub ↗

Helper to avoid a common series of PushOverrideID -> GetID() -> PopID() call (note that when using this pattern, TestEngine's "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

7807// (note that when using this pattern, TestEngine's "Stack Tool" will tend to not display the intermediate stack level.
7808// for that to work we would need to do PushOverrideID() -> ItemAdd() -> PopID() which would alter widget code a little more)
7809ImGuiID ImGui::GetIDWithSeed(const char* str, const char* str_end, ImGuiID seed)
7810{
7811 ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed);
7812 ImGuiContext& g = *GImGui;
7813 if (g.DebugHookIdInfo == id)
7814 DebugHookIdInfo(id, ImGuiDataType_String, str, str_end);
7815 return id;
7816}
7817
7818void ImGui::PopID()
7819{

Callers

nothing calls this directly

Calls 1

ImHashStrFunction · 0.85

Tested by

no test coverage detected