From 7d0d2d1e6535f94672b5c98640835374a91c497b Mon Sep 17 00:00:00 2001 From: Evan Pezent Date: Sun, 26 Jul 2020 21:49:31 -0500 Subject: [PATCH] rename IsPlotItemHighlighted to IsLegendEntryHovered --- implot.cpp | 2 +- implot.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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