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)
| 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) |
| 8477 | ImGuiID 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 | |
| 8486 | void ImGui::PopID() |
| 8487 | { |
nothing calls this directly
no test coverage detected