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)
| 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) |
| 9875 | ImGuiID 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 | |
| 9886 | ImGuiID ImGui::GetIDWithSeed(int n, ImGuiID seed) |
| 9887 | { |
nothing calls this directly
no test coverage detected