diff --git a/implot.cpp b/implot.cpp index 21e4389..12949dd 100644 --- a/implot.cpp +++ b/implot.cpp @@ -1964,7 +1964,7 @@ ImPlotLimits GetPlotQuery(int y_axis_in) { return result; } -bool IsPlotItemHighlighted(const char* label_id) { +bool IsLegendEntryHovered(const char* label_id) { IM_ASSERT_USER_ERROR(gp.CurrentPlot != NULL, "IsPlotItemHighlight() needs to be called between BeginPlot() and EndPlot()!"); ImGuiID id = ImGui::GetID(label_id); ImPlotItem* item = gp.CurrentPlot->Items.GetByKey(id); diff --git a/implot.h b/implot.h index 61ffe17..0cb02d7 100644 --- a/implot.h +++ b/implot.h @@ -302,8 +302,8 @@ ImPlotLimits GetPlotLimits(int y_axis = -1); bool IsPlotQueried(); // Returns the current plot query bounds. ImPlotLimits GetPlotQuery(int y_axis = -1); -// Returns true if plot item is highlighted (i.e. legend entry is hovered) -bool IsPlotItemHighlighted(const char* label_id); +// Returns true if a plot item legend entry is hovered. +bool IsLegendEntryHovered(const char* label_id); //----------------------------------------------------------------------------- // Plot Input Mapping