From a956e9849d94c204eab4439b5162afe5cef02d20 Mon Sep 17 00:00:00 2001 From: ozlb Date: Tue, 5 May 2020 06:25:24 +0200 Subject: [PATCH] Update implot.h --- implot.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/implot.h b/implot.h index c70c72f..6eb67c9 100644 --- a/implot.h +++ b/implot.h @@ -43,11 +43,10 @@ enum ImPlotFlags_ { ImPlotFlags_Selection = 1 << 3, // the user will be able to box-select with right-mouse ImPlotFlags_PixelQuery = 1 << 4, // query ranges will not change their pixel position if the plot is scrolled/zoomed ImPlotFlags_ContextMenu = 1 << 5, // the user will be able to open a context menu with double-right click - ImPlotFlags_Cursors = 1 << 6, // show cursors - ImPlotFlags_Crosshairs = 1 << 7, // the default mouse cursor will be replaced with a crosshair when hovered - ImPlotFlags_CullData = 1 << 8, // plot data outside the plot area will be culled from rendering - ImPlotFlags_AntiAliased = 1 << 9, // lines and fills will be anti-aliased (not recommended) - ImPlotFlags_NoChild = 1 << 10, // a child window region will not be used to capture mouse scroll (can boost performance for single ImGui window applications) + ImPlotFlags_Crosshairs = 1 << 6, // the default mouse cursor will be replaced with a crosshair when hovered + ImPlotFlags_CullData = 1 << 7, // plot data outside the plot area will be culled from rendering + ImPlotFlags_AntiAliased = 1 << 8, // lines and fills will be anti-aliased (not recommended) + ImPlotFlags_NoChild = 1 << 9, // a child window region will not be used to capture mouse scroll (can boost performance for single ImGui window applications) ImPlotFlags_Default = ImPlotFlags_MousePos | ImPlotFlags_Legend | ImPlotFlags_Highlight | ImPlotFlags_Selection | ImPlotFlags_ContextMenu | ImPlotFlags_CullData }; @@ -79,7 +78,6 @@ enum ImPlotCol_ { ImPlotCol_YAxis, // x-axis grid/label color (defaults to ImGuiCol_Text) ImPlotCol_Selection, // box-selection color (defaults to yellow) ImPlotCol_Query, // box-query color (defaults to green) - ImPlotCol_Cursors, // cursor colors (defaults to red) ImPlotCol_COUNT }; @@ -174,7 +172,7 @@ void PlotErrorBars(const char* label_id, const float* xs, const float* ys, const void PlotErrorBars(const char* label_id, const float* xs, const float* ys, const float* neg, const float* pos, int count, int offset = 0, int stride = sizeof(float)); void PlotErrorBars(const char* label_id, ImVec4 (*getter)(void* data, int idx), void* data, int count, int offset = 0); // Plots a pie chart. If the sum of values > 1, each value will be normalized. Center and radius are in plot coordinates. -void PlotPieChart(char** label_ids, float* values, int count, const ImVec2& center, float radius, bool show_percents = true, float angle0 = 90); +void PlotPieChart(const char** label_ids, float* values, int count, const ImVec2& center, float radius, bool show_percents = true, float angle0 = 90); // Plots a text label at point x,y. void PlotLabel(const char* text, float x, float y, bool vertical = false, const ImVec2& pixel_offset = ImVec2(0,0)); // Plots digital channels. @@ -195,8 +193,6 @@ ImPlotRange GetPlotRange(); bool IsPlotQueried(); /// Returns the current or most recent plot querey range. ImPlotRange GetPlotQuery(); -/// Returns the current cursors range. -ImPlotRange GetPlotCursors(); //----------------------------------------------------------------------------- // Plot Styling