mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
107 lines
3.8 KiB
C#
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& pos, const ImVec2& 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& pos, const ImVec2& 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);
|
|
}
|
|
}
|