mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 12:38:24 +01:00
146 lines
5.7 KiB
C#
146 lines
5.7 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.ImPlotApi.Internal
|
|
{
|
|
public static partial class ImPlotTickerExtensions
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L565">implot_internal.h:565</see>
|
|
/// <br/>
|
|
/// <c>ImPlotTick& AddTick(double value, bool major, int level, bool show_label, const char* label)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe ImPlotTickPtr AddTick(
|
|
this ImPlotTickerPtr target,
|
|
double value,
|
|
bool major,
|
|
int level,
|
|
bool showLabel,
|
|
ImString label
|
|
)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
return PInvoke.ImPlotTicker_AddTick_internal_0(target, value, major, level, showLabel, label_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L575">implot_internal.h:575</see>
|
|
/// <br/>
|
|
/// <c>ImPlotTick& AddTick(double value, bool major, int level, bool show_label, ImPlotFormatter formatter, void* data)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe ImPlotTickPtr AddTick(
|
|
this ImPlotTickerPtr target,
|
|
double value,
|
|
bool major,
|
|
int level,
|
|
bool showLabel,
|
|
ImPlotFormatter formatter,
|
|
Ptr data
|
|
) =>
|
|
PInvoke.ImPlotTicker_AddTick_internal_1(
|
|
target,
|
|
value,
|
|
major,
|
|
level,
|
|
showLabel,
|
|
Marshal.GetFunctionPointerForDelegate(formatter),
|
|
data
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L575">implot_internal.h:575</see>
|
|
/// <br/>
|
|
/// <c>ImPlotTick& AddTick(double value, bool major, int level, bool show_label, ImPlotFormatter formatter, void* data)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe ImPlotTickPtr AddTick(
|
|
this ImPlotTickerPtr target,
|
|
double value,
|
|
bool major,
|
|
int level,
|
|
bool showLabel,
|
|
delegate* unmanaged[Cdecl]<double, byte*, int, void*, int> formatter,
|
|
Ptr data
|
|
) => PInvoke.ImPlotTicker_AddTick_internal_1(target, value, major, level, showLabel, (nint)formatter, data);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L587">implot_internal.h:587</see>
|
|
/// <br/><c>inline ImPlotTick& AddTick(ImPlotTick tick)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe ImPlotTickPtr AddTick(this ImPlotTickerPtr target, ImPlotTick tick) =>
|
|
PInvoke.ImPlotTicker_AddTick_internal_2(target, tick);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L597">implot_internal.h:597</see>
|
|
/// <br/><c>const char* GetText(int idx) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Ptr<byte> GetText(this ImPlotTickerPtr target, int idx) =>
|
|
PInvoke.ImPlotTicker_GetText_internal_0(target, idx);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L601">implot_internal.h:601</see>
|
|
/// <br/><c>const char* GetText(const ImPlotTick& tick)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Ptr<byte> GetText(this ImPlotTickerPtr target, in ImPlotTick tick)
|
|
{
|
|
fixed (ImPlotTick* tick_fixed = &tick)
|
|
{
|
|
return PInvoke.ImPlotTicker_GetText_internal_1(target, tick_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L605">implot_internal.h:605</see>
|
|
/// <br/><c>void OverrideSizeLate(const ImVec2& size)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void OverrideSizeLate(this ImPlotTickerPtr target, in float2 size)
|
|
{
|
|
fixed (float2* size_fixed = &size)
|
|
{
|
|
PInvoke.ImPlotTicker_OverrideSizeLate_internal(target, size_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L610">implot_internal.h:610</see>
|
|
/// <br/><c>void Reset()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void Reset(this ImPlotTickerPtr target) => PInvoke.ImPlotTicker_Reset_internal(target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L618">implot_internal.h:618</see>
|
|
/// <br/><c>int TickCount() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe int TickCount(this ImPlotTickerPtr target) =>
|
|
PInvoke.ImPlotTicker_TickCount_internal(target);
|
|
}
|
|
}
|