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:
parent
397fc05ca8
commit
7d0d2d1e65
|
@ -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);
|
||||
|
|
4
implot.h
4
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user