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.
| 9770 | // This is one of the very rare legacy case where we use ImGuiWindow methods, |
| 9771 | // it should ideally be flattened at some point but it's been used a lots by widgets. |
| 9772 | IM_MSVC_RUNTIME_CHECKS_OFF |
| 9773 | ImGuiID ImGuiWindow::GetID(const char* str, const char* str_end) |
| 9774 | { |
| 9775 | ImGuiID seed = IDStack.back(); |
| 9776 | ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); |
| 9777 | #ifndef IMGUI_DISABLE_DEBUG_TOOLS |
| 9778 | ImGuiContext& g = *Ctx; |
| 9779 | if (g.DebugHookIdInfoId == id) |
| 9780 | ImGui::DebugHookIdInfo(id, ImGuiDataType_String, str, str_end); |
| 9781 | #endif |
| 9782 | return id; |
| 9783 | } |
| 9784 | |
| 9785 | ImGuiID ImGuiWindow::GetID(const void* ptr) |
| 9786 | { |
no test coverage detected