//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImPlotApi.Internal
{
public static partial class ImPlotAnnotationCollectionExtensions
{
///
///
/// C++:
/// implot_internal.h:452
///
/// void AppendV(const ImVec2& pos, const ImVec2& off, ImU32 bg, ImU32 fg, bool clamp, const char* fmt, va_list args) IM_FMTLIST(7)
///
///
public static unsafe void AppendV(
this ImPlotAnnotationCollectionPtr target,
in float2 pos,
in float2 off,
uint bg,
uint fg,
bool clamp,
ImString text,
Ptr args
)
{
fixed (byte* text_fixed = text)
{
fixed (float2* off_fixed = &off)
{
fixed (float2* pos_fixed = &pos)
{
PInvoke.ImPlotAnnotationCollection_AppendV_internal(
target,
pos_fixed,
off_fixed,
bg,
fg,
clamp,
text_fixed,
(byte*)args
);
}
}
}
}
///
///
/// C++:
/// implot_internal.h:465
///
/// void Append(const ImVec2& pos, const ImVec2& off, ImU32 bg, ImU32 fg, bool clamp, const char* fmt, ...) IM_FMTARGS(7)
///
///
public static unsafe void Append(
this ImPlotAnnotationCollectionPtr target,
in float2 pos,
in float2 off,
uint bg,
uint fg,
bool clamp,
ImString text
)
{
fixed (byte* text_fixed = text)
{
fixed (float2* off_fixed = &off)
{
fixed (float2* pos_fixed = &pos)
{
PInvoke.ImPlotAnnotationCollection_Append_internal(
target,
pos_fixed,
off_fixed,
bg,
fg,
clamp,
text_fixed
);
}
}
}
}
///
///
/// C++:
/// implot_internal.h:472
///
const char* GetText(int idx)
///
///
public static unsafe Ptr GetText(this ImPlotAnnotationCollectionPtr target, int idx) =>
PInvoke.ImPlotAnnotationCollection_GetText_internal(target, idx);
///
///
/// C++:
/// implot_internal.h:476
///
void Reset()
///
///
public static unsafe void Reset(this ImPlotAnnotationCollectionPtr target) =>
PInvoke.ImPlotAnnotationCollection_Reset_internal(target);
}
}