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

Function AnnotationV

Source/3rdParty/implot/implot.cpp:3881–3889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3879}
3880
3881void 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
3891void Annotation(double x, double y, const ImVec4& col, const ImVec2& offset, bool clamp, const char* fmt, ...) {
3892 va_list args;

Callers 1

AnnotationFunction · 0.85

Calls 4

SetupLockFunction · 0.85
PlotToPixelsFunction · 0.85
GetStyleColorU32Function · 0.85
CalcTextColorFunction · 0.85

Tested by

no test coverage detected