//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImPlotApi.Internal
{
public static partial class ImPlotTickerExtensions
{
///
///
/// C++:
/// implot_internal.h:565
///
/// ImPlotTick& AddTick(double value, bool major, int level, bool show_label, const char* label)
///
///
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);
}
}
///
///
/// C++:
/// implot_internal.h:575
///
/// ImPlotTick& AddTick(double value, bool major, int level, bool show_label, ImPlotFormatter formatter, void* data)
///
///
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
);
///
///
/// C++:
/// implot_internal.h:575
///
/// ImPlotTick& AddTick(double value, bool major, int level, bool show_label, ImPlotFormatter formatter, void* data)
///
///
public static unsafe ImPlotTickPtr AddTick(
this ImPlotTickerPtr target,
double value,
bool major,
int level,
bool showLabel,
delegate* unmanaged[Cdecl] formatter,
Ptr data
) => PInvoke.ImPlotTicker_AddTick_internal_1(target, value, major, level, showLabel, (nint)formatter, data);
///
///
/// C++:
/// implot_internal.h:587
///
inline ImPlotTick& AddTick(ImPlotTick tick)
///
///
public static unsafe ImPlotTickPtr AddTick(this ImPlotTickerPtr target, ImPlotTick tick) =>
PInvoke.ImPlotTicker_AddTick_internal_2(target, tick);
///
///
/// C++:
/// implot_internal.h:597
///
const char* GetText(int idx) const
///
///
public static unsafe Ptr GetText(this ImPlotTickerPtr target, int idx) =>
PInvoke.ImPlotTicker_GetText_internal_0(target, idx);
///
///
/// C++:
/// implot_internal.h:601
///
const char* GetText(const ImPlotTick& tick)
///
///
public static unsafe Ptr GetText(this ImPlotTickerPtr target, in ImPlotTick tick)
{
fixed (ImPlotTick* tick_fixed = &tick)
{
return PInvoke.ImPlotTicker_GetText_internal_1(target, tick_fixed);
}
}
///
///
/// C++:
/// implot_internal.h:605
///
void OverrideSizeLate(const ImVec2& size)
///
///
public static unsafe void OverrideSizeLate(this ImPlotTickerPtr target, in float2 size)
{
fixed (float2* size_fixed = &size)
{
PInvoke.ImPlotTicker_OverrideSizeLate_internal(target, size_fixed);
}
}
///
///
/// C++:
/// implot_internal.h:610
///
void Reset()
///
///
public static unsafe void Reset(this ImPlotTickerPtr target) => PInvoke.ImPlotTicker_Reset_internal(target);
///
///
/// C++:
/// implot_internal.h:618
///
int TickCount() const
///
///
public static unsafe int TickCount(this ImPlotTickerPtr target) =>
PInvoke.ImPlotTicker_TickCount_internal(target);
}
}