brutal/Brutal.ImPlot/Generated-Internal/Functions/ImPlotAnnotationCollection.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

107 lines
3.8 KiB
C#

// <auto-generated/>
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImPlotApi.Internal
{
public static partial class ImPlotAnnotationCollectionExtensions
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L452">implot_internal.h:452</see>
/// <br/>
/// <c>void AppendV(const ImVec2&amp; pos, const ImVec2&amp; off, ImU32 bg, ImU32 fg, bool clamp, const char* fmt, va_list args) IM_FMTLIST(7)</c>
/// </para>
/// </summary>
public static unsafe void AppendV(
this ImPlotAnnotationCollectionPtr target,
in float2 pos,
in float2 off,
uint bg,
uint fg,
bool clamp,
ImString text,
Ptr<byte> 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
);
}
}
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L465">implot_internal.h:465</see>
/// <br/>
/// <c>void Append(const ImVec2&amp; pos, const ImVec2&amp; off, ImU32 bg, ImU32 fg, bool clamp, const char* fmt, ...) IM_FMTARGS(7)</c>
/// </para>
/// </summary>
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
);
}
}
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L472">implot_internal.h:472</see>
/// <br/><c>const char* GetText(int idx)</c>
/// </para>
/// </summary>
public static unsafe Ptr<byte> GetText(this ImPlotAnnotationCollectionPtr target, int idx) =>
PInvoke.ImPlotAnnotationCollection_GetText_internal(target, idx);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L476">implot_internal.h:476</see>
/// <br/><c>void Reset()</c>
/// </para>
/// </summary>
public static unsafe void Reset(this ImPlotAnnotationCollectionPtr target) =>
PInvoke.ImPlotAnnotationCollection_Reset_internal(target);
}
}