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