MCPcopy Create free account
hub / github.com/brenocq/implot3d / GetPlotRectPos

Function GetPlotRectPos

implot3d.cpp:2202–2207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2200ImPlot3DPoint PixelsToPlotPlane(double x, double y, ImPlane3D plane, bool mask) { return PixelsToPlotPlane(ImVec2((float)x, (float)y), plane, mask); }
2201
2202ImVec2 GetPlotRectPos() {
2203 ImPlot3DContext& gp = *GImPlot3D;
2204 IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "GetPlotRectPos() needs to be called between BeginPlot() and EndPlot()!");
2205 SetupLock();
2206 return gp.CurrentPlot->PlotRect.Min;
2207}
2208
2209ImVec2 GetPlotRectSize() {
2210 ImPlot3DContext& gp = *GImPlot3D;

Callers 2

GetPlotPosFunction · 0.85
DemoCustomOverlayFunction · 0.85

Calls 1

SetupLockFunction · 0.85

Tested by

no test coverage detected