| 2079 | } |
| 2080 | |
| 2081 | void ImGui::EndCombo() |
| 2082 | { |
| 2083 | ImGuiContext& g = *GImGui; |
| 2084 | g.BeginComboDepth--; |
| 2085 | char name[16]; |
| 2086 | ImFormatString(name, IM_COUNTOF(name), "##Combo_%02d", g.BeginComboDepth); // FIXME: Move those to helpers? |
| 2087 | if (strcmp(g.CurrentWindow->Name, name) != 0) |
| 2088 | IM_ASSERT_USER_ERROR_RET(0, "Calling EndCombo() in wrong window!"); |
| 2089 | EndPopup(); |
| 2090 | } |
| 2091 | |
| 2092 | // Call directly after the BeginCombo/EndCombo block. The preview is designed to only host non-interactive elements |
| 2093 | // (Experimental, see GitHub issues: #1658, #4168) |
nothing calls this directly
no test coverage detected