MCPcopy Create free account
hub / github.com/AlexandreRouma/SDRPlusPlus / GetIDWithSeed

Method GetIDWithSeed

core/src/imgui/imgui.cpp:7061–7070  ·  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

7059// (note that when using this pattern, TestEngine's "Stack Tool" will tend to not display the intermediate stack level.
7060// for that to work we would need to do PushOverrideID() -> ItemAdd() -> PopID() which would alter widget code a little more)
7061ImGuiID ImGui::GetIDWithSeed(const char* str, const char* str_end, ImGuiID seed)
7062{
7063 ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed);
7064 ImGui::KeepAliveID(id);
7065#ifdef IMGUI_ENABLE_TEST_ENGINE
7066 ImGuiContext& g = *GImGui;
7067 IMGUI_TEST_ENGINE_ID_INFO2(id, ImGuiDataType_String, str, str_end);
7068#endif
7069 return id;
7070}
7071
7072void ImGui::PopID()
7073{

Callers

nothing calls this directly

Calls 1

ImHashStrFunction · 0.85

Tested by

no test coverage detected