MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / GetIDWithSeed

Method GetIDWithSeed

extern/imgui/imgui.cpp:8477–8484  ·  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

8475// (note that when using this pattern, TestEngine's "Stack Tool" will tend to not display the intermediate stack level.
8476// for that to work we would need to do PushOverrideID() -> ItemAdd() -> PopID() which would alter widget code a little more)
8477ImGuiID ImGui::GetIDWithSeed(const char* str, const char* str_end, ImGuiID seed)
8478{
8479 ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed);
8480 ImGuiContext& g = *GImGui;
8481 if (g.DebugHookIdInfo == id)
8482 DebugHookIdInfo(id, ImGuiDataType_String, str, str_end);
8483 return id;
8484}
8485
8486void ImGui::PopID()
8487{

Callers

nothing calls this directly

Calls 1

ImHashStrFunction · 0.85

Tested by

no test coverage detected