brutal/brutal.imgui/Brutal.ImPlot/Generated-Internal/Functions/ImPlot.gen.cs
2026-10-15 14:12:02 +13:00

2257 lines
97 KiB
C#

// <auto-generated/>
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImPlotApi
{
public partial class ImPlot
{
public partial class Internal
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1263">implot_internal.h:1263</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L463">implot.cpp:463</see>
/// <br/><c>void Initialize(ImPlotContext* ctx)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Initializes an ImPlotContext
/// </para>
/// </remarks>
public static unsafe void Initialize(ImPlotContextPtr ctx) => PInvoke.Initialize_internal(ctx);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1265">implot_internal.h:1265</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L503">implot.cpp:503</see>
/// <br/><c>void ResetCtxForNextPlot(ImPlotContext* ctx)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Resets an ImPlot context for the next call to BeginPlot
/// </para>
/// </remarks>
public static unsafe void ResetCtxForNextPlot(ImPlotContextPtr ctx) =>
PInvoke.ResetCtxForNextPlot_internal(ctx);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1267">implot_internal.h:1267</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L521">implot.cpp:521</see>
/// <br/><c>void ResetCtxForNextAlignedPlots(ImPlotContext* ctx)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Resets an ImPlot context for the next call to BeginAlignedPlots
/// </para>
/// </remarks>
public static unsafe void ResetCtxForNextAlignedPlots(ImPlotContextPtr ctx) =>
PInvoke.ResetCtxForNextAlignedPlots_internal(ctx);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1269">implot_internal.h:1269</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L526">implot.cpp:526</see>
/// <br/><c>void ResetCtxForNextSubplot(ImPlotContext* ctx)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Resets an ImPlot context for the next call to BeginSubplot
/// </para>
/// </remarks>
public static unsafe void ResetCtxForNextSubplot(ImPlotContextPtr ctx) =>
PInvoke.ResetCtxForNextSubplot_internal(ctx);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1276">implot_internal.h:1276</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L536">implot.cpp:536</see>
/// <br/><c>ImPlotPlot* GetPlot(const char* title)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Gets a plot from the current ImPlotContext
/// </para>
/// </remarks>
public static unsafe ImPlotPlotPtr GetPlot(ImString title)
{
fixed (byte* title_fixed = title)
{
return PInvoke.GetPlot_internal(title_fixed);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1278">implot_internal.h:1278</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L542">implot.cpp:542</see>
/// <br/><c>ImPlotPlot* GetCurrentPlot()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Gets the current plot from the current ImPlotContext
/// </para>
/// </remarks>
public static unsafe ImPlotPlotPtr GetCurrentPlot() => PInvoke.GetCurrentPlot_internal();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1280">implot_internal.h:1280</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L546">implot.cpp:546</see>
/// <br/><c>void BustPlotCache()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Busts the cache for every plot in the current context
/// </para>
/// </remarks>
public static unsafe void BustPlotCache() => PInvoke.BustPlotCache_internal();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1283">implot_internal.h:1283</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L1515">implot.cpp:1515</see>
/// <br/><c>void ShowPlotContextMenu(ImPlotPlot&amp; plot)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Shows a plot's context menu.
/// </para>
/// </remarks>
public static unsafe void ShowPlotContextMenu(ImPlotPlotPtr plot) =>
PInvoke.ShowPlotContextMenu_internal(plot);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1290">implot_internal.h:1290</see>
/// <br/><c>static inline void SetupLock()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Lock Setup and call SetupFinish if necessary.
/// </para>
/// </remarks>
public static unsafe void SetupLock() => PInvoke.SetupLock_internal();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1302">implot_internal.h:1302</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L3335">implot.cpp:3335</see>
/// <br/><c>void SubplotNextCell()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Advances to next subplot
/// </para>
/// </remarks>
public static unsafe void SubplotNextCell() => PInvoke.SubplotNextCell_internal();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1305">implot_internal.h:1305</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L1488">implot.cpp:1488</see>
/// <br/><c>void ShowSubplotsContextMenu(ImPlotSubplot&amp; subplot)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Shows a subplot's context menu.
/// </para>
/// </remarks>
public static unsafe void ShowSubplotsContextMenu(ImPlotSubplotPtr subplot) =>
PInvoke.ShowSubplotsContextMenu_internal(subplot);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1312">implot_internal.h:1312</see>
/// ,
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_items.cpp#L398">implot_items.cpp:398</see>
/// <br/>
/// <c>bool BeginItem(const char* label_id, ImPlotItemFlags flags=0, ImPlotCol recolor_from=IMPLOT_AUTO)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Begins a new item. Returns false if the item should not be plotted. Pushes PlotClipRect.
/// </para>
/// <para>
/// Begins a new item. Returns false if the item should not be plotted.
/// </para>
/// </remarks>
public static unsafe bool BeginItem(
ImString labelId,
ImPlotItemFlags flags = default,
ImPlotCol recolorFrom = (ImPlotCol)(-1)
)
{
fixed (byte* labelId_fixed = labelId)
{
return PInvoke.BeginItem_internal(labelId_fixed, flags, recolorFrom);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1327">implot_internal.h:1327</see>
/// ,
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_items.cpp#L479">implot_items.cpp:479</see>
/// <br/><c>void EndItem()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Ends an item (call only if BeginItem returns true). Pops PlotClipRect.
/// </para>
/// <para>
/// Ends an item (call only if BeginItem returns true)
/// </para>
/// </remarks>
public static unsafe void EndItem() => PInvoke.EndItem_internal();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1330">implot_internal.h:1330</see>
/// ,
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_items.cpp#L287">implot_items.cpp:287</see>
/// <br/>
/// <c>ImPlotItem* RegisterOrGetItem(const char* label_id, ImPlotItemFlags flags, bool* just_created = nullptr)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Register or get an existing item from the current plot.
/// </para>
/// </remarks>
public static unsafe ImPlotItemPtr RegisterOrGetItem(
ImString labelId,
ImPlotItemFlags flags,
Ptr<bool> justCreated = default
)
{
fixed (byte* labelId_fixed = labelId)
{
return PInvoke.RegisterOrGetItem_internal(labelId_fixed, flags, (Bool8*)justCreated);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1332">implot_internal.h:1332</see>
/// ,
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_items.cpp#L310">implot_items.cpp:310</see>
/// <br/><c>ImPlotItem* GetItem(const char* label_id)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get a plot item from the current plot.
/// </para>
/// </remarks>
public static unsafe ImPlotItemPtr GetItem(ImString labelId)
{
fixed (byte* labelId_fixed = labelId)
{
return PInvoke.GetItem_internal(labelId_fixed);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1334">implot_internal.h:1334</see>
/// ,
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_items.cpp#L320">implot_items.cpp:320</see>
/// <br/><c>ImPlotItem* GetCurrentItem()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Gets the current item.
/// </para>
/// </remarks>
public static unsafe ImPlotItemPtr GetCurrentItem() => PInvoke.GetCurrentItem_internal();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1336">implot_internal.h:1336</see>
/// ,
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_items.cpp#L360">implot_items.cpp:360</see>
/// <br/><c>void BustItemCache()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Busts the cache for every item for every plot in the current context.
/// </para>
/// </remarks>
public static unsafe void BustItemCache() => PInvoke.BustItemCache_internal();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1343">implot_internal.h:1343</see>
/// <br/><c>static inline bool AnyAxesInputLocked(ImPlotAxis* axes, int count)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns true if any enabled axis is locked from user input.
/// </para>
/// </remarks>
public static unsafe bool AnyAxesInputLocked(ImPlotAxisPtr axes, int count) =>
PInvoke.AnyAxesInputLocked_internal(axes, count);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1352">implot_internal.h:1352</see>
/// <br/><c>static inline bool AllAxesInputLocked(ImPlotAxis* axes, int count)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns true if all enabled axes are locked from user input.
/// </para>
/// </remarks>
public static unsafe bool AllAxesInputLocked(ImPlotAxisPtr axes, int count) =>
PInvoke.AllAxesInputLocked_internal(axes, count);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1360">implot_internal.h:1360</see>
/// <br/><c>static inline bool AnyAxesHeld(ImPlotAxis* axes, int count)</c>
/// </para>
/// </summary>
public static unsafe bool AnyAxesHeld(ImPlotAxisPtr axes, int count) =>
PInvoke.AnyAxesHeld_internal(axes, count);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1368">implot_internal.h:1368</see>
/// <br/><c>static inline bool AnyAxesHovered(ImPlotAxis* axes, int count)</c>
/// </para>
/// </summary>
public static unsafe bool AnyAxesHovered(ImPlotAxisPtr axes, int count) =>
PInvoke.AnyAxesHovered_internal(axes, count);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1377">implot_internal.h:1377</see>
/// <br/><c>static inline bool FitThisFrame()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns true if the user has requested data to be fit.
/// </para>
/// </remarks>
public static unsafe bool FitThisFrame() => PInvoke.FitThisFrame_internal();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1382">implot_internal.h:1382</see>
/// <br/><c>static inline void FitPointX(double x)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Extends the current plot's axes so that it encompasses a vertical line at x
/// </para>
/// </remarks>
public static unsafe void FitPointX(double x) => PInvoke.FitPointX_internal(x);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1389">implot_internal.h:1389</see>
/// <br/><c>static inline void FitPointY(double y)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Extends the current plot's axes so that it encompasses a horizontal line at y
/// </para>
/// </remarks>
public static unsafe void FitPointY(double y) => PInvoke.FitPointY_internal(y);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1396">implot_internal.h:1396</see>
/// <br/><c>static inline void FitPoint(const ImPlotPoint&amp; p)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Extends the current plot's axes so that it encompasses point p
/// </para>
/// </remarks>
public static unsafe void FitPoint(in double2 p)
{
fixed (double2* p_fixed = &p)
{
PInvoke.FitPoint_internal(p_fixed);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1405">implot_internal.h:1405</see>
/// <br/><c>static inline bool RangesOverlap(const ImPlotRange&amp; r1, const ImPlotRange&amp; r2)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns true if two ranges overlap
/// </para>
/// </remarks>
public static unsafe bool RangesOverlap(in ImPlotRange r1, in ImPlotRange r2)
{
fixed (ImPlotRange* r2_fixed = &r2)
{
fixed (ImPlotRange* r1_fixed = &r1)
{
return PInvoke.RangesOverlap_internal(r1_fixed, r2_fixed);
}
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1409">implot_internal.h:1409</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L1347">implot.cpp:1347</see>
/// <br/>
/// <c>void ShowAxisContextMenu(ImPlotAxis&amp; axis, ImPlotAxis* equal_axis, bool time_allowed = false)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Shows an axis's context menu.
/// </para>
/// </remarks>
public static unsafe void ShowAxisContextMenu(
ImPlotAxisPtr axis,
ImPlotAxisPtr equalAxis,
bool timeAllowed = false
) => PInvoke.ShowAxisContextMenu_internal(axis, equalAxis, timeAllowed);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1416">implot_internal.h:1416</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L556">implot.cpp:556</see>
/// <br/>
/// <c>ImVec2 GetLocationPos(const ImRect&amp; outer_rect, const ImVec2&amp; inner_size, ImPlotLocation location, const ImVec2&amp; pad = ImVec2(0,0))</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Gets the position of an inner rect that is located inside of an outer rect according to an
/// ImPlotLocation and padding amount.
/// </para>
/// </remarks>
public static unsafe float2 GetLocationPos(
in floatRect outerRect,
in float2 innerSize,
ImPlotLocation location,
in float2? pad = default
)
{
var pad_default = pad ?? new float2(0f, 0f);
fixed (float2* innerSize_fixed = &innerSize)
{
fixed (floatRect* outerRect_fixed = &outerRect)
{
return PInvoke.GetLocationPos_internal(
outerRect_fixed,
innerSize_fixed,
location,
&pad_default
);
}
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1418">implot_internal.h:1418</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L576">implot.cpp:576</see>
/// <br/>
/// <c>ImVec2 CalcLegendSize(ImPlotItemGroup&amp; items, const ImVec2&amp; pad, const ImVec2&amp; spacing, bool vertical)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Calculates the bounding box size of a legend _before_ clipping.
/// </para>
/// </remarks>
public static unsafe float2 CalcLegendSize(
ImPlotItemGroupPtr items,
in float2 pad,
in float2 spacing,
bool vertical
)
{
fixed (float2* spacing_fixed = &spacing)
{
fixed (float2* pad_fixed = &pad)
{
return PInvoke.CalcLegendSize_internal(items, pad_fixed, spacing_fixed, vertical);
}
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1420">implot_internal.h:1420</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L597">implot.cpp:597</see>
/// <br/>
/// <c>bool ClampLegendRect(ImRect&amp; legend_rect, const ImRect&amp; outer_rect, const ImVec2&amp; pad)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Clips calculated legend size
/// </para>
/// </remarks>
public static unsafe bool ClampLegendRect(Ptr<floatRect> legendRect, in floatRect outerRect, in float2 pad)
{
fixed (float2* pad_fixed = &pad)
{
fixed (floatRect* outerRect_fixed = &outerRect)
{
return PInvoke.ClampLegendRect_internal((floatRect*)legendRect, outerRect_fixed, pad_fixed);
}
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1422">implot_internal.h:1422</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L628">implot.cpp:628</see>
/// <br/>
/// <c>bool ShowLegendEntries(ImPlotItemGroup&amp; items, const ImRect&amp; legend_bb, bool interactable, const ImVec2&amp; pad, const ImVec2&amp; spacing, bool vertical, ImDrawList&amp; DrawList)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Renders legend entries into a bounding box
/// </para>
/// </remarks>
public static unsafe bool ShowLegendEntries(
ImPlotItemGroupPtr items,
in floatRect legendBb,
bool interactable,
in float2 pad,
in float2 spacing,
bool vertical,
ImDrawListPtr drawList
)
{
fixed (float2* spacing_fixed = &spacing)
{
fixed (float2* pad_fixed = &pad)
{
fixed (floatRect* legendBb_fixed = &legendBb)
{
return PInvoke.ShowLegendEntries_internal(
items,
legendBb_fixed,
interactable,
pad_fixed,
spacing_fixed,
vertical,
drawList
);
}
}
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1424">implot_internal.h:1424</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L4246">implot.cpp:4246</see>
/// <br/>
/// <c>void ShowAltLegend(const char* title_id, bool vertical = true, const ImVec2 size = ImVec2(0,0), bool interactable = true)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Shows an alternate legend for the plot identified by #title_id, outside of the plot frame (can be
/// called before or after of Begin/EndPlot but must occur in the same ImGui window! This is not
/// thoroughly tested nor scrollable!).
/// </para>
/// </remarks>
public static unsafe void ShowAltLegend(
ImString titleId,
bool vertical = true,
float2? size = default,
bool interactable = true
)
{
var size_default = size ?? new float2(0f, 0f);
fixed (byte* titleId_fixed = titleId)
{
PInvoke.ShowAltLegend_internal(titleId_fixed, vertical, size_default, interactable);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1426">implot_internal.h:1426</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L1462">implot.cpp:1462</see>
/// <br/><c>bool ShowLegendContextMenu(ImPlotLegend&amp; legend, bool visible)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Shows a legend's context menu.
/// </para>
/// </remarks>
public static unsafe bool ShowLegendContextMenu(ImPlotLegendPtr legend, bool visible) =>
PInvoke.ShowLegendContextMenu_internal(legend, visible);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1433">implot_internal.h:1433</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L1599">implot.cpp:1599</see>
/// <br/>
/// <c>void LabelAxisValue(const ImPlotAxis&amp; axis, double value, char* buff, int size, bool round = false)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Create a a string label for a an axis value
/// </para>
/// </remarks>
public static unsafe void LabelAxisValue(
in ImPlotAxis axis,
double value,
Ptr<byte> buff,
int size,
bool round = false
)
{
fixed (ImPlotAxis* axis_fixed = &axis)
{
PInvoke.LabelAxisValue_internal(axis_fixed, value, (byte*)buff, size, round);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1440">implot_internal.h:1440</see>
/// <br/><c>static inline const ImPlotNextItemData&amp; GetItemData()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get styling data for next item (call between Begin/EndItem)
/// </para>
/// </remarks>
public static unsafe ImPlotNextItemDataPtr GetItemData() => PInvoke.GetItemData_internal();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1443">implot_internal.h:1443</see>
/// <br/><c>static inline bool IsColorAuto(const ImVec4&amp; col)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns true if a color is set to be automatically determined
/// </para>
/// </remarks>
public static unsafe bool IsColorAuto(in float4 col)
{
fixed (float4* col_fixed = &col)
{
return PInvoke.IsColorAuto_internal_0(col_fixed);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1445">implot_internal.h:1445</see>
/// <br/><c>static inline bool IsColorAuto(ImPlotCol idx)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns true if a style color is set to be automatically determined
/// </para>
/// </remarks>
public static unsafe bool IsColorAuto(ImPlotCol idx) => PInvoke.IsColorAuto_internal_1(idx);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1447">implot_internal.h:1447</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L262">implot.cpp:262</see>
/// <br/><c>ImVec4 GetAutoColor(ImPlotCol idx)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns the automatically deduced style color
/// </para>
/// </remarks>
public static unsafe float4 GetAutoColor(ImPlotCol idx) => PInvoke.GetAutoColor_internal(idx);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1450">implot_internal.h:1450</see>
/// <br/><c>static inline ImVec4 GetStyleColorVec4(ImPlotCol idx)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns the style color whether it is automatic or custom set
/// </para>
/// </remarks>
public static unsafe float4 GetStyleColorVec4(ImPlotCol idx) => PInvoke.GetStyleColorVec4_internal(idx);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1451">implot_internal.h:1451</see>
/// <br/><c>static inline ImU32 GetStyleColorU32(ImPlotCol idx)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns the style color whether it is automatic or custom set
/// </para>
/// </remarks>
public static unsafe uint GetStyleColorU32(ImPlotCol idx) => PInvoke.GetStyleColorU32_internal(idx);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1454">implot_internal.h:1454</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L340">implot.cpp:340</see>
/// <br/>
/// <c>void AddTextVertical(ImDrawList *DrawList, ImVec2 pos, ImU32 col, const char* text_begin, const char* text_end = nullptr)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Draws vertical text. The position is the bottom left of the text rect.
/// </para>
/// </remarks>
public static unsafe void AddTextVertical(ImDrawListPtr drawList, float2 pos, ImColor8 col, ImString text)
{
fixed (byte* text_fixed = text)
{
PInvoke.AddTextVertical_internal(drawList, pos, col, text_fixed, text_fixed + text.Length);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1456">implot_internal.h:1456</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L388">implot.cpp:388</see>
/// <br/>
/// <c>void AddTextCentered(ImDrawList* DrawList, ImVec2 top_center, ImU32 col, const char* text_begin, const char* text_end = nullptr)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Draws multiline horizontal text centered.
/// </para>
/// </remarks>
public static unsafe void AddTextCentered(
ImDrawListPtr drawList,
float2 topCenter,
ImColor8 col,
ImString text
)
{
fixed (byte* text_fixed = text)
{
PInvoke.AddTextCentered_internal(drawList, topCenter, col, text_fixed, text_fixed + text.Length);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1458">implot_internal.h:1458</see>
/// <br/><c>static inline ImVec2 CalcTextSizeVertical(const char *text)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Calculates the size of vertical text
/// </para>
/// </remarks>
public static unsafe float2 CalcTextSizeVertical(ImString text)
{
fixed (byte* text_fixed = text)
{
return PInvoke.CalcTextSizeVertical_internal(text_fixed);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1463">implot_internal.h:1463</see>
/// <br/><c>static inline ImU32 CalcTextColor(const ImVec4&amp; bg)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns white or black text given background color
/// </para>
/// </remarks>
public static unsafe uint CalcTextColor(in float4 bg)
{
fixed (float4* bg_fixed = &bg)
{
return PInvoke.CalcTextColor_internal_0(bg_fixed);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1464">implot_internal.h:1464</see>
/// <br/><c>static inline ImU32 CalcTextColor(ImU32 bg)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns white or black text given background color
/// </para>
/// </remarks>
public static unsafe uint CalcTextColor(uint bg) => PInvoke.CalcTextColor_internal_1(bg);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1466">implot_internal.h:1466</see>
/// <br/><c>static inline ImU32 CalcHoverColor(ImU32 col)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Lightens or darkens a color for hover
/// </para>
/// </remarks>
public static unsafe uint CalcHoverColor(ImColor8 col) => PInvoke.CalcHoverColor_internal(col);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1469">implot_internal.h:1469</see>
/// <br/>
/// <c>static inline ImVec2 ClampLabelPos(ImVec2 pos, const ImVec2&amp; size, const ImVec2&amp; Min, const ImVec2&amp; Max)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Clamps a label position so that it fits a rect defined by Min/Max
/// </para>
/// </remarks>
public static unsafe float2 ClampLabelPos(float2 pos, in float2 size, in float2 min, in float2 max)
{
fixed (float2* max_fixed = &max)
{
fixed (float2* min_fixed = &min)
{
fixed (float2* size_fixed = &size)
{
return PInvoke.ClampLabelPos_internal(pos, size_fixed, min_fixed, max_fixed);
}
}
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1478">implot_internal.h:1478</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L4572">implot.cpp:4572</see>
/// <br/><c>ImU32 GetColormapColorU32(int idx, ImPlotColormap cmap)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns a color from the Color map given an index &gt;= 0 (modulo will be performed).
/// </para>
/// </remarks>
public static unsafe uint GetColormapColorU32(int idx, ImPlotColormap cmap) =>
PInvoke.GetColormapColorU32_internal(idx, cmap);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1480">implot_internal.h:1480</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L4552">implot.cpp:4552</see>
/// <br/><c>ImU32 NextColormapColorU32()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns the next unused colormap color and advances the colormap. Can be used to skip colors if
/// desired.
/// </para>
/// </remarks>
public static unsafe uint NextColormapColorU32() => PInvoke.NextColormapColorU32_internal();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1482">implot_internal.h:1482</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L4584">implot.cpp:4584</see>
/// <br/><c>ImU32 SampleColormapU32(float t, ImPlotColormap cmap)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Linearly interpolates a color from the current colormap given t between 0 and 1.
/// </para>
/// </remarks>
public static unsafe uint SampleColormapU32(float t, ImPlotColormap cmap) =>
PInvoke.SampleColormapU32_internal(t, cmap);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1485">implot_internal.h:1485</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L4595">implot.cpp:4595</see>
/// <br/>
/// <c>void RenderColorBar(const ImU32* colors, int size, ImDrawList&amp; DrawList, const ImRect&amp; bounds, bool vert, bool reversed, bool continuous)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Render a colormap bar
/// </para>
/// </remarks>
public static unsafe void RenderColorBar(
Ptr<uint> colors,
int size,
ImDrawListPtr drawList,
in floatRect bounds,
bool vert,
bool reversed,
bool continuous
)
{
fixed (floatRect* bounds_fixed = &bounds)
{
PInvoke.RenderColorBar_internal(
(uint*)colors,
size,
drawList,
bounds_fixed,
vert,
reversed,
continuous
);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1492">implot_internal.h:1492</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L403">implot.cpp:403</see>
/// <br/><c>double NiceNum(double x, bool round)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Rounds x to powers of 2,5 and 10 for generating axis labels (from Graphics Gems 1 Chapter 11.2)
/// </para>
/// </remarks>
public static unsafe double NiceNum(double x, bool round) => PInvoke.NiceNum_internal(x, round);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1494">implot_internal.h:1494</see>
/// <br/><c>static inline int OrderOfMagnitude(double val)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Computes order of magnitude of double.
/// </para>
/// </remarks>
public static unsafe int OrderOfMagnitude(double val) => PInvoke.OrderOfMagnitude_internal(val);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1496">implot_internal.h:1496</see>
/// <br/><c>static inline int OrderToPrecision(int order)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns the precision required for a order of magnitude.
/// </para>
/// </remarks>
public static unsafe int OrderToPrecision(int order) => PInvoke.OrderToPrecision_internal(order);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1498">implot_internal.h:1498</see>
/// <br/><c>static inline int Precision(double val)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns a floating point precision to use given a value
/// </para>
/// </remarks>
public static unsafe int Precision(double val) => PInvoke.Precision_internal(val);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1500">implot_internal.h:1500</see>
/// <br/><c>static inline double RoundTo(double val, int prec)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Round a value to a given precision
/// </para>
/// </remarks>
public static unsafe double RoundTo(double val, int prec) => PInvoke.RoundTo_internal(val, prec);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1503">implot_internal.h:1503</see>
/// <br/>
/// <c>static inline ImVec2 Intersection(const ImVec2&amp; a1, const ImVec2&amp; a2, const ImVec2&amp; b1, const ImVec2&amp; b2)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns the intersection point of two lines A and B (assumes they are not parallel!)
/// </para>
/// </remarks>
public static unsafe float2 Intersection(in float2 a1, in float2 a2, in float2 b1, in float2 b2)
{
fixed (float2* b2_fixed = &b2)
{
fixed (float2* b1_fixed = &b1)
{
fixed (float2* a2_fixed = &a2)
{
fixed (float2* a1_fixed = &a1)
{
return PInvoke.Intersection_internal(a1_fixed, a2_fixed, b1_fixed, b2_fixed);
}
}
}
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1520">implot_internal.h:1520</see>
/// <br/><c>template &lt;typename T&gt;</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Calculate histogram bin counts and widths
/// </para>
/// </remarks>
public static unsafe void CalculateBins(
Ptr<float> values,
int count,
ImPlotBin meth,
in ImPlotRange range,
Ptr<int> binsOut,
Ptr<double> widthOut
)
{
fixed (ImPlotRange* range_fixed = &range)
{
PInvoke.CalculateBins_internal_float(
(float*)values,
count,
meth,
range_fixed,
(int*)binsOut,
(double*)widthOut
);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1520">implot_internal.h:1520</see>
/// <br/><c>template &lt;typename T&gt;</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Calculate histogram bin counts and widths
/// </para>
/// </remarks>
public static unsafe void CalculateBins(
Ptr<double> values,
int count,
ImPlotBin meth,
in ImPlotRange range,
Ptr<int> binsOut,
Ptr<double> widthOut
)
{
fixed (ImPlotRange* range_fixed = &range)
{
PInvoke.CalculateBins_internal_double(
(double*)values,
count,
meth,
range_fixed,
(int*)binsOut,
(double*)widthOut
);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1520">implot_internal.h:1520</see>
/// <br/><c>template &lt;typename T&gt;</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Calculate histogram bin counts and widths
/// </para>
/// </remarks>
public static unsafe void CalculateBins(
Ptr<sbyte> values,
int count,
ImPlotBin meth,
in ImPlotRange range,
Ptr<int> binsOut,
Ptr<double> widthOut
)
{
fixed (ImPlotRange* range_fixed = &range)
{
PInvoke.CalculateBins_internal_sbyte(
(sbyte*)values,
count,
meth,
range_fixed,
(int*)binsOut,
(double*)widthOut
);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1520">implot_internal.h:1520</see>
/// <br/><c>template &lt;typename T&gt;</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Calculate histogram bin counts and widths
/// </para>
/// </remarks>
public static unsafe void CalculateBins(
Ptr<byte> values,
int count,
ImPlotBin meth,
in ImPlotRange range,
Ptr<int> binsOut,
Ptr<double> widthOut
)
{
fixed (ImPlotRange* range_fixed = &range)
{
PInvoke.CalculateBins_internal_byte(
(byte*)values,
count,
meth,
range_fixed,
(int*)binsOut,
(double*)widthOut
);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1520">implot_internal.h:1520</see>
/// <br/><c>template &lt;typename T&gt;</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Calculate histogram bin counts and widths
/// </para>
/// </remarks>
public static unsafe void CalculateBins(
Ptr<short> values,
int count,
ImPlotBin meth,
in ImPlotRange range,
Ptr<int> binsOut,
Ptr<double> widthOut
)
{
fixed (ImPlotRange* range_fixed = &range)
{
PInvoke.CalculateBins_internal_short(
(short*)values,
count,
meth,
range_fixed,
(int*)binsOut,
(double*)widthOut
);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1520">implot_internal.h:1520</see>
/// <br/><c>template &lt;typename T&gt;</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Calculate histogram bin counts and widths
/// </para>
/// </remarks>
public static unsafe void CalculateBins(
Ptr<ushort> values,
int count,
ImPlotBin meth,
in ImPlotRange range,
Ptr<int> binsOut,
Ptr<double> widthOut
)
{
fixed (ImPlotRange* range_fixed = &range)
{
PInvoke.CalculateBins_internal_ushort(
(ushort*)values,
count,
meth,
range_fixed,
(int*)binsOut,
(double*)widthOut
);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1520">implot_internal.h:1520</see>
/// <br/><c>template &lt;typename T&gt;</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Calculate histogram bin counts and widths
/// </para>
/// </remarks>
public static unsafe void CalculateBins(
Ptr<int> values,
int count,
ImPlotBin meth,
in ImPlotRange range,
Ptr<int> binsOut,
Ptr<double> widthOut
)
{
fixed (ImPlotRange* range_fixed = &range)
{
PInvoke.CalculateBins_internal_int(
(int*)values,
count,
meth,
range_fixed,
(int*)binsOut,
(double*)widthOut
);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1520">implot_internal.h:1520</see>
/// <br/><c>template &lt;typename T&gt;</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Calculate histogram bin counts and widths
/// </para>
/// </remarks>
public static unsafe void CalculateBins(
Ptr<uint> values,
int count,
ImPlotBin meth,
in ImPlotRange range,
Ptr<int> binsOut,
Ptr<double> widthOut
)
{
fixed (ImPlotRange* range_fixed = &range)
{
PInvoke.CalculateBins_internal_uint(
(uint*)values,
count,
meth,
range_fixed,
(int*)binsOut,
(double*)widthOut
);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1520">implot_internal.h:1520</see>
/// <br/><c>template &lt;typename T&gt;</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Calculate histogram bin counts and widths
/// </para>
/// </remarks>
public static unsafe void CalculateBins(
Ptr<long> values,
int count,
ImPlotBin meth,
in ImPlotRange range,
Ptr<int> binsOut,
Ptr<double> widthOut
)
{
fixed (ImPlotRange* range_fixed = &range)
{
PInvoke.CalculateBins_internal_long(
(long*)values,
count,
meth,
range_fixed,
(int*)binsOut,
(double*)widthOut
);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1520">implot_internal.h:1520</see>
/// <br/><c>template &lt;typename T&gt;</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Calculate histogram bin counts and widths
/// </para>
/// </remarks>
public static unsafe void CalculateBins(
Ptr<ulong> values,
int count,
ImPlotBin meth,
in ImPlotRange range,
Ptr<int> binsOut,
Ptr<double> widthOut
)
{
fixed (ImPlotRange* range_fixed = &range)
{
PInvoke.CalculateBins_internal_ulong(
(ulong*)values,
count,
meth,
range_fixed,
(int*)binsOut,
(double*)widthOut
);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1545">implot_internal.h:1545</see>
/// <br/><c>static inline bool IsLeapYear(int year)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns true if year is leap year (366 days long)
/// </para>
/// </remarks>
public static unsafe bool IsLeapYear(int year) => PInvoke.IsLeapYear_internal(year);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1549">implot_internal.h:1549</see>
/// <br/><c>static inline int GetDaysInMonth(int year, int month)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns the number of days in a month, accounting for Feb. leap years. #month is zero indexed.
/// </para>
/// </remarks>
public static unsafe int GetDaysInMonth(int year, int month) =>
PInvoke.GetDaysInMonth_internal(year, month);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1555">implot_internal.h:1555</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L915">implot.cpp:915</see>
/// <br/><c>ImPlotTime MkGmtTime(struct tm *ptm)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Make a UNIX timestamp from a tm struct expressed in UTC time (i.e. GMT timezone).
/// </para>
/// </remarks>
public static unsafe ImPlotTime MkGmtTime(Ptr<tm> ptm) => PInvoke.MkGmtTime_internal((tm*)ptm);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1557">implot_internal.h:1557</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L927">implot.cpp:927</see>
/// <br/><c>tm* GetGmtTime(const ImPlotTime&amp; t, tm* ptm)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Make a tm struct expressed in UTC time (i.e. GMT timezone) from a UNIX timestamp.
/// </para>
/// </remarks>
public static unsafe Ptr<tm> GetGmtTime(in ImPlotTime t, Ptr<tm> ptm)
{
fixed (ImPlotTime* t_fixed = &t)
{
return PInvoke.GetGmtTime_internal(t_fixed, (tm*)ptm);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1560">implot_internal.h:1560</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L939">implot.cpp:939</see>
/// <br/><c>ImPlotTime MkLocTime(struct tm *ptm)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Make a UNIX timestamp from a tm struct expressed in local time.
/// </para>
/// </remarks>
public static unsafe ImPlotTime MkLocTime(Ptr<tm> ptm) => PInvoke.MkLocTime_internal((tm*)ptm);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1562">implot_internal.h:1562</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L947">implot.cpp:947</see>
/// <br/><c>tm* GetLocTime(const ImPlotTime&amp; t, tm* ptm)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Make a tm struct expressed in local time from a UNIX timestamp.
/// </para>
/// </remarks>
public static unsafe Ptr<tm> GetLocTime(in ImPlotTime t, Ptr<tm> ptm)
{
fixed (ImPlotTime* t_fixed = &t)
{
return PInvoke.GetLocTime_internal(t_fixed, (tm*)ptm);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1568">implot_internal.h:1568</see>
/// <br/><c>static inline ImPlotTime MkTime(struct tm *ptm)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// // Make a UNIX timestamp from a tm struct according to the current ImPlotStyle.UseLocalTime setting.
/// </para>
/// </remarks>
public static unsafe ImPlotTime MkTime(Ptr<tm> ptm) => PInvoke.MkTime_internal((tm*)ptm);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1573">implot_internal.h:1573</see>
/// <br/><c>static inline tm* GetTime(const ImPlotTime&amp; t, tm* ptm)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get a tm struct from a UNIX timestamp according to the current ImPlotStyle.UseLocalTime setting.
/// </para>
/// </remarks>
public static unsafe Ptr<tm> GetTime(in ImPlotTime t, Ptr<tm> ptm)
{
fixed (ImPlotTime* t_fixed = &t)
{
return PInvoke.GetTime_internal(t_fixed, (tm*)ptm);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1580">implot_internal.h:1580</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L958">implot.cpp:958</see>
/// <br/>
/// <c>ImPlotTime MakeTime(int year, int month = 0, int day = 1, int hour = 0, int min = 0, int sec = 0, int us = 0)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Make a timestamp from time components.
/// year[1970-3000], month[0-11], day[1-31], hour[0-23], min[0-59], sec[0-59], us[0,999999]
/// </code>
/// </remarks>
public static unsafe ImPlotTime MakeTime(
int year,
int month = 0,
int day = 1,
int hour = 0,
int min = 0,
int sec = 0,
int us = 0
) => PInvoke.MakeTime_internal(year, month, day, hour, min, sec, us);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1582">implot_internal.h:1582</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L981">implot.cpp:981</see>
/// <br/><c>int GetYear(const ImPlotTime&amp; t)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get year component from timestamp [1970-3000]
/// </para>
/// </remarks>
public static unsafe int GetYear(in ImPlotTime t)
{
fixed (ImPlotTime* t_fixed = &t)
{
return PInvoke.GetYear_internal(t_fixed);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1584">implot_internal.h:1584</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L987">implot.cpp:987</see>
/// <br/><c>int GetMonth(const ImPlotTime&amp; t)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get month component from timestamp [0-11]
/// </para>
/// </remarks>
public static unsafe int GetMonth(in ImPlotTime t)
{
fixed (ImPlotTime* t_fixed = &t)
{
return PInvoke.GetMonth_internal(t_fixed);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1587">implot_internal.h:1587</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L993">implot.cpp:993</see>
/// <br/><c>ImPlotTime AddTime(const ImPlotTime&amp; t, ImPlotTimeUnit unit, int count)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Adds or subtracts time from a timestamp. #count &gt; 0 to add, &lt; 0 to subtract.
/// </para>
/// </remarks>
public static unsafe ImPlotTime AddTime(in ImPlotTime t, ImPlotTimeUnit unit, int count)
{
fixed (ImPlotTime* t_fixed = &t)
{
return PInvoke.AddTime_internal(t_fixed, unit, count);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1589">implot_internal.h:1589</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L1025">implot.cpp:1025</see>
/// <br/><c>ImPlotTime FloorTime(const ImPlotTime&amp; t, ImPlotTimeUnit unit)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Rounds a timestamp down to nearest unit.
/// </para>
/// </remarks>
public static unsafe ImPlotTime FloorTime(in ImPlotTime t, ImPlotTimeUnit unit)
{
fixed (ImPlotTime* t_fixed = &t)
{
return PInvoke.FloorTime_internal(t_fixed, unit);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1591">implot_internal.h:1591</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L1042">implot.cpp:1042</see>
/// <br/><c>ImPlotTime CeilTime(const ImPlotTime&amp; t, ImPlotTimeUnit unit)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Rounds a timestamp up to the nearest unit.
/// </para>
/// </remarks>
public static unsafe ImPlotTime CeilTime(in ImPlotTime t, ImPlotTimeUnit unit)
{
fixed (ImPlotTime* t_fixed = &t)
{
return PInvoke.CeilTime_internal(t_fixed, unit);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1593">implot_internal.h:1593</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L1046">implot.cpp:1046</see>
/// <br/><c>ImPlotTime RoundTime(const ImPlotTime&amp; t, ImPlotTimeUnit unit)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Rounds a timestamp up or down to the nearest unit.
/// </para>
/// </remarks>
public static unsafe ImPlotTime RoundTime(in ImPlotTime t, ImPlotTimeUnit unit)
{
fixed (ImPlotTime* t_fixed = &t)
{
return PInvoke.RoundTime_internal(t_fixed, unit);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1595">implot_internal.h:1595</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L1054">implot.cpp:1054</see>
/// <br/>
/// <c>ImPlotTime CombineDateTime(const ImPlotTime&amp; date_part, const ImPlotTime&amp; time_part)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Combines the date of one timestamp with the time-of-day of another timestamp.
/// </para>
/// </remarks>
public static unsafe ImPlotTime CombineDateTime(in ImPlotTime datePart, in ImPlotTime timePart)
{
fixed (ImPlotTime* timePart_fixed = &timePart)
{
fixed (ImPlotTime* datePart_fixed = &datePart)
{
return PInvoke.CombineDateTime_internal(datePart_fixed, timePart_fixed);
}
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1598">implot_internal.h:1598</see>
/// <br/><c>static inline ImPlotTime Now()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the current time as a timestamp.
/// </para>
/// </remarks>
public static unsafe ImPlotTime Now() => PInvoke.Now_internal();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1600">implot_internal.h:1600</see>
/// <br/><c>static inline ImPlotTime Today()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the current date as a timestamp.
/// </para>
/// </remarks>
public static unsafe ImPlotTime Today() => PInvoke.Today_internal();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1603">implot_internal.h:1603</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L1075">implot.cpp:1075</see>
/// <br/>
/// <c>int FormatTime(const ImPlotTime&amp; t, char* buffer, int size, ImPlotTimeFmt fmt, bool use_24_hr_clk)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Formats the time part of timestamp t into a buffer according to #fmt
/// </para>
/// </remarks>
public static unsafe int FormatTime(
in ImPlotTime t,
Ptr<byte> buffer,
int size,
ImPlotTimeFmt text,
bool use24HrClk
)
{
fixed (ImPlotTime* t_fixed = &t)
{
return PInvoke.FormatTime_internal(t_fixed, (byte*)buffer, size, text, use24HrClk);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1605">implot_internal.h:1605</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L1115">implot.cpp:1115</see>
/// <br/>
/// <c>int FormatDate(const ImPlotTime&amp; t, char* buffer, int size, ImPlotDateFmt fmt, bool use_iso_8601)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Formats the date part of timestamp t into a buffer according to #fmt
/// </para>
/// </remarks>
public static unsafe int FormatDate(
in ImPlotTime t,
Ptr<byte> buffer,
int size,
ImPlotDateFmt text,
bool useIso8601
)
{
fixed (ImPlotTime* t_fixed = &t)
{
return PInvoke.FormatDate_internal(t_fixed, (byte*)buffer, size, text, useIso8601);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1607">implot_internal.h:1607</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L1144">implot.cpp:1144</see>
/// <br/>
/// <c>int FormatDateTime(const ImPlotTime&amp; t, char* buffer, int size, ImPlotDateTimeSpec fmt)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Formats the time and/or date parts of a timestamp t into a buffer according to #fmt
/// </para>
/// </remarks>
public static unsafe int FormatDateTime(
in ImPlotTime t,
Ptr<byte> buffer,
int size,
ImPlotDateTimeSpec text
)
{
fixed (ImPlotTime* t_fixed = &t)
{
return PInvoke.FormatDateTime_internal(t_fixed, (byte*)buffer, size, text);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1613">implot_internal.h:1613</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L5451">implot.cpp:5451</see>
/// <br/>
/// <c>bool ShowDatePicker(const char* id, int* level, ImPlotTime* t, const ImPlotTime* t1 = nullptr, const ImPlotTime* t2 = nullptr)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Shows a date picker widget block (year/month/day).
/// #level = 0 for day, 1 for month, 2 for year. Modified by user interaction.
/// #t will be set when a day is clicked and the function will return true.
/// #t1 and #t2 are optional dates to highlight.
/// </code>
/// </remarks>
public static unsafe bool ShowDatePicker(
ImString id,
Ptr<int> level,
ImPlotTimePtr t,
ImPlotTimePtr t1 = default,
ImPlotTimePtr t2 = default
)
{
fixed (byte* id_fixed = id)
{
return PInvoke.ShowDatePicker_internal(id_fixed, (int*)level, t, t1, t2);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1616">implot_internal.h:1616</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L5662">implot.cpp:5662</see>
/// <br/><c>bool ShowTimePicker(const char* id, ImPlotTime* t)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Shows a time picker widget block (hour/min/sec).
/// #t will be set when a new hour, minute, or sec is selected or am/pm is toggled, and the function will return true.
/// </code>
/// </remarks>
public static unsafe bool ShowTimePicker(ImString id, ImPlotTimePtr t)
{
fixed (byte* id_fixed = id)
{
return PInvoke.ShowTimePicker_internal(id_fixed, t);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1622">implot_internal.h:1622</see>
/// <br/><c>static inline double TransformForward_Log10(double v, void*)</c>
/// </para>
/// </summary>
public static unsafe double TransformForward_Log10(double v, Ptr _) =>
PInvoke.TransformForward_Log10_internal(v, _);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1627">implot_internal.h:1627</see>
/// <br/><c>static inline double TransformInverse_Log10(double v, void*)</c>
/// </para>
/// </summary>
public static unsafe double TransformInverse_Log10(double v, Ptr _) =>
PInvoke.TransformInverse_Log10_internal(v, _);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1631">implot_internal.h:1631</see>
/// <br/><c>static inline double TransformForward_SymLog(double v, void*)</c>
/// </para>
/// </summary>
public static unsafe double TransformForward_SymLog(double v, Ptr _) =>
PInvoke.TransformForward_SymLog_internal(v, _);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1635">implot_internal.h:1635</see>
/// <br/><c>static inline double TransformInverse_SymLog(double v, void*)</c>
/// </para>
/// </summary>
public static unsafe double TransformInverse_SymLog(double v, Ptr _) =>
PInvoke.TransformInverse_SymLog_internal(v, _);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1639">implot_internal.h:1639</see>
/// <br/><c>static inline double TransformForward_Logit(double v, void*)</c>
/// </para>
/// </summary>
public static unsafe double TransformForward_Logit(double v, Ptr _) =>
PInvoke.TransformForward_Logit_internal(v, _);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1644">implot_internal.h:1644</see>
/// <br/><c>static inline double TransformInverse_Logit(double v, void*)</c>
/// </para>
/// </summary>
public static unsafe double TransformInverse_Logit(double v, Ptr _) =>
PInvoke.TransformInverse_Logit_internal(v, _);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1652">implot_internal.h:1652</see>
/// <br/><c>static inline int Formatter_Default(double value, char* buff, int size, void* data)</c>
/// </para>
/// </summary>
public static unsafe int Formatter_Default(double value, Ptr<byte> buff, int size, Ptr data) =>
PInvoke.Formatter_Default_internal(value, (byte*)buff, size, data);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1657">implot_internal.h:1657</see>
/// <br/><c>static inline int Formatter_Logit(double value, char* buff, int size, void*)</c>
/// </para>
/// </summary>
public static unsafe int Formatter_Logit(double value, Ptr<byte> buff, int size, Ptr _) =>
PInvoke.Formatter_Logit_internal(value, (byte*)buff, size, _);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1673">implot_internal.h:1673</see>
/// <br/><c>static inline int Formatter_Time(double, char* buff, int size, void* data)</c>
/// </para>
/// </summary>
public static unsafe int Formatter_Time(double _, Ptr<byte> buff, int size, Ptr data) =>
PInvoke.Formatter_Time_internal(_, (byte*)buff, size, data);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1682">implot_internal.h:1682</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L722">implot.cpp:722</see>
/// <br/>
/// <c>void Locator_Default(ImPlotTicker&amp; ticker, const ImPlotRange&amp; range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data)</c>
/// </para>
/// </summary>
public static unsafe void Locator_Default(
ImPlotTickerPtr ticker,
in ImPlotRange range,
float pixels,
bool vertical,
ImPlotFormatter formatter,
Ptr formatterData
)
{
fixed (ImPlotRange* range_fixed = &range)
{
PInvoke.Locator_Default_internal(
ticker,
range_fixed,
pixels,
vertical,
Marshal.GetFunctionPointerForDelegate(formatter),
formatterData
);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1682">implot_internal.h:1682</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L722">implot.cpp:722</see>
/// <br/>
/// <c>void Locator_Default(ImPlotTicker&amp; ticker, const ImPlotRange&amp; range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data)</c>
/// </para>
/// </summary>
public static unsafe void Locator_Default(
ImPlotTickerPtr ticker,
in ImPlotRange range,
float pixels,
bool vertical,
delegate* unmanaged[Cdecl]<double, byte*, int, void*, int> formatter,
Ptr formatterData
)
{
fixed (ImPlotRange* range_fixed = &range)
{
PInvoke.Locator_Default_internal(
ticker,
range_fixed,
pixels,
vertical,
(nint)formatter,
formatterData
);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1683">implot_internal.h:1683</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L1222">implot.cpp:1222</see>
/// <br/>
/// <c>void Locator_Time(ImPlotTicker&amp; ticker, const ImPlotRange&amp; range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data)</c>
/// </para>
/// </summary>
public static unsafe void Locator_Time(
ImPlotTickerPtr ticker,
in ImPlotRange range,
float pixels,
bool vertical,
ImPlotFormatter formatter,
Ptr formatterData
)
{
fixed (ImPlotRange* range_fixed = &range)
{
PInvoke.Locator_Time_internal(
ticker,
range_fixed,
pixels,
vertical,
Marshal.GetFunctionPointerForDelegate(formatter),
formatterData
);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1683">implot_internal.h:1683</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L1222">implot.cpp:1222</see>
/// <br/>
/// <c>void Locator_Time(ImPlotTicker&amp; ticker, const ImPlotRange&amp; range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data)</c>
/// </para>
/// </summary>
public static unsafe void Locator_Time(
ImPlotTickerPtr ticker,
in ImPlotRange range,
float pixels,
bool vertical,
delegate* unmanaged[Cdecl]<double, byte*, int, void*, int> formatter,
Ptr formatterData
)
{
fixed (ImPlotRange* range_fixed = &range)
{
PInvoke.Locator_Time_internal(
ticker,
range_fixed,
pixels,
vertical,
(nint)formatter,
formatterData
);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1684">implot_internal.h:1684</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L802">implot.cpp:802</see>
/// <br/>
/// <c>void Locator_Log10(ImPlotTicker&amp; ticker, const ImPlotRange&amp; range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data)</c>
/// </para>
/// </summary>
public static unsafe void Locator_Log10(
ImPlotTickerPtr ticker,
in ImPlotRange range,
float pixels,
bool vertical,
ImPlotFormatter formatter,
Ptr formatterData
)
{
fixed (ImPlotRange* range_fixed = &range)
{
PInvoke.Locator_Log10_internal(
ticker,
range_fixed,
pixels,
vertical,
Marshal.GetFunctionPointerForDelegate(formatter),
formatterData
);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1684">implot_internal.h:1684</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L802">implot.cpp:802</see>
/// <br/>
/// <c>void Locator_Log10(ImPlotTicker&amp; ticker, const ImPlotRange&amp; range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data)</c>
/// </para>
/// </summary>
public static unsafe void Locator_Log10(
ImPlotTickerPtr ticker,
in ImPlotRange range,
float pixels,
bool vertical,
delegate* unmanaged[Cdecl]<double, byte*, int, void*, int> formatter,
Ptr formatterData
)
{
fixed (ImPlotRange* range_fixed = &range)
{
PInvoke.Locator_Log10_internal(
ticker,
range_fixed,
pixels,
vertical,
(nint)formatter,
formatterData
);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1685">implot_internal.h:1685</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L819">implot.cpp:819</see>
/// <br/>
/// <c>void Locator_SymLog(ImPlotTicker&amp; ticker, const ImPlotRange&amp; range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data)</c>
/// </para>
/// </summary>
public static unsafe void Locator_SymLog(
ImPlotTickerPtr ticker,
in ImPlotRange range,
float pixels,
bool vertical,
ImPlotFormatter formatter,
Ptr formatterData
)
{
fixed (ImPlotRange* range_fixed = &range)
{
PInvoke.Locator_SymLog_internal(
ticker,
range_fixed,
pixels,
vertical,
Marshal.GetFunctionPointerForDelegate(formatter),
formatterData
);
}
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L1685">implot_internal.h:1685</see>
/// , <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.cpp#L819">implot.cpp:819</see>
/// <br/>
/// <c>void Locator_SymLog(ImPlotTicker&amp; ticker, const ImPlotRange&amp; range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data)</c>
/// </para>
/// </summary>
public static unsafe void Locator_SymLog(
ImPlotTickerPtr ticker,
in ImPlotRange range,
float pixels,
bool vertical,
delegate* unmanaged[Cdecl]<double, byte*, int, void*, int> formatter,
Ptr formatterData
)
{
fixed (ImPlotRange* range_fixed = &range)
{
PInvoke.Locator_SymLog_internal(
ticker,
range_fixed,
pixels,
vertical,
(nint)formatter,
formatterData
);
}
}
}
}
}