Unlike ImGui only ShowDemoWindow of the public implot.h api is actually defined in implot_demo.cpp.
Refrained from moving ShowStyleEditor, ShowStyleSelector, ShowUserGuide, ShowMetricsWindow to implot_demo.cpp like ImGui.
* Added ImPlotPieChartFlags_IgnoreHidden flag. Added PlotPieChart overload that accepts an ImPlotFormatter.
* Fixed a potential division by zero in PlotPieChart.
* Removed PlotPieChart overload code duplication
Macro got renamed in IMGUI_VERSION_NUM 18993. Technically old ImFloor()/IM_FLOOR() was a trunc(). New ImFloor() is an actual floor(), works with signed value, so good for position.
* Added optional parameters to Drag.. functions to query state of items: clicked, hovered, held
See also #506
* Updated click/hover/held code
* Added demo
* DragRect is now report state of the entire rect
* Fix DragRect interaction; improve demo; some preferential changes
* Added held state handling for the DragRect rectangle
---------
Co-authored-by: epezent <epezent16@gmail.com>
* Fully functional legend scrolling
* refactor legend scroll capture
* remove ImPlotFlags_NoChild scroll capturing in favor of ImGui::SetKeyOwner
* change scroll capture behavior to only capture if scroll can be consumed
* rev version, add note about removal of ImPlotFlags_NoChild