| 3879 | } |
| 3880 | |
| 3881 | void AnnotationV(double x, double y, const ImVec4& col, const ImVec2& offset, bool clamp, const char* fmt, va_list args) { |
| 3882 | ImPlotContext& gp = *GImPlot; |
| 3883 | IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "Annotation() needs to be called between BeginPlot() and EndPlot()!"); |
| 3884 | SetupLock(); |
| 3885 | ImVec2 pos = PlotToPixels(x,y,IMPLOT_AUTO,IMPLOT_AUTO); |
| 3886 | ImU32 bg = ImGui::GetColorU32(col); |
| 3887 | ImU32 fg = col.w == 0 ? GetStyleColorU32(ImPlotCol_InlayText) : CalcTextColor(col); |
| 3888 | gp.Annotations.AppendV(pos, offset, bg, fg, clamp, fmt, args); |
| 3889 | } |
| 3890 | |
| 3891 | void Annotation(double x, double y, const ImVec4& col, const ImVec2& offset, bool clamp, const char* fmt, ...) { |
| 3892 | va_list args; |
no test coverage detected