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