This is one of the very rare legacy case where we use ImGuiWindow methods, it should ideally be flattened at some point but it's been used a lots by widgets.
| 9212 | // This is one of the very rare legacy case where we use ImGuiWindow methods, |
| 9213 | // it should ideally be flattened at some point but it's been used a lots by widgets. |
| 9214 | IM_MSVC_RUNTIME_CHECKS_OFF |
| 9215 | ImGuiID ImGuiWindow::GetID(const char* str, const char* str_end) |
| 9216 | { |
| 9217 | ImGuiID seed = IDStack.back(); |
| 9218 | ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); |
| 9219 | #ifndef IMGUI_DISABLE_DEBUG_TOOLS |
| 9220 | ImGuiContext& g = *Ctx; |
| 9221 | if (g.DebugHookIdInfoId == id) |
| 9222 | ImGui::DebugHookIdInfo(id, ImGuiDataType_String, str, str_end); |
| 9223 | #endif |
| 9224 | return id; |
| 9225 | } |
| 9226 | |
| 9227 | ImGuiID ImGuiWindow::GetID(const void* ptr) |
| 9228 | { |
no test coverage detected