MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / GetPlotMousePos

Function GetPlotMousePos

Source/3rdParty/implot/implot.cpp:3783–3787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3781}
3782
3783ImPlotPoint GetPlotMousePos(ImAxis x_idx, ImAxis y_idx) {
3784 IM_ASSERT_USER_ERROR(GImPlot->CurrentPlot != nullptr, "GetPlotMousePos() needs to be called between BeginPlot() and EndPlot()!");
3785 SetupLock();
3786 return PixelsToPlot(ImGui::GetMousePos(), x_idx, y_idx);
3787}
3788
3789ImPlotRect GetPlotLimits(ImAxis x_idx, ImAxis y_idx) {
3790 ImPlotContext& gp = *GImPlot;

Callers 6

Demo_QueryingFunction · 0.85
PlotCandlestickFunction · 0.85
DragPointFunction · 0.85
DragLineXFunction · 0.85
DragLineYFunction · 0.85
DragRectFunction · 0.85

Calls 2

SetupLockFunction · 0.85
PixelsToPlotFunction · 0.85

Tested by

no test coverage detected