1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-13 14:38:51 -05:00

rename IsPlotItemHighlighted to IsLegendEntryHovered

This commit is contained in:
Evan Pezent 2020-07-26 21:49:31 -05:00
parent 397fc05ca8
commit 7d0d2d1e65
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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