// // Generated by Brutal.ImGui.Generator; do not edit by hand. #nullable enable namespace Brutal.ImPlotApi { public partial class ImPlot { public partial class Internal { /// /// /// C++: /// implot_internal.h:1263 /// , implot.cpp:463 ///
void Initialize(ImPlotContext* ctx) ///
///
/// /// /// Initializes an ImPlotContext /// /// public static unsafe void Initialize(ImPlotContextPtr ctx) => PInvoke.Initialize_internal(ctx); /// /// /// C++: /// implot_internal.h:1265 /// , implot.cpp:503 ///
void ResetCtxForNextPlot(ImPlotContext* ctx) ///
///
/// /// /// Resets an ImPlot context for the next call to BeginPlot /// /// public static unsafe void ResetCtxForNextPlot(ImPlotContextPtr ctx) => PInvoke.ResetCtxForNextPlot_internal(ctx); /// /// /// C++: /// implot_internal.h:1267 /// , implot.cpp:521 ///
void ResetCtxForNextAlignedPlots(ImPlotContext* ctx) ///
///
/// /// /// Resets an ImPlot context for the next call to BeginAlignedPlots /// /// public static unsafe void ResetCtxForNextAlignedPlots(ImPlotContextPtr ctx) => PInvoke.ResetCtxForNextAlignedPlots_internal(ctx); /// /// /// C++: /// implot_internal.h:1269 /// , implot.cpp:526 ///
void ResetCtxForNextSubplot(ImPlotContext* ctx) ///
///
/// /// /// Resets an ImPlot context for the next call to BeginSubplot /// /// public static unsafe void ResetCtxForNextSubplot(ImPlotContextPtr ctx) => PInvoke.ResetCtxForNextSubplot_internal(ctx); /// /// /// C++: /// implot_internal.h:1276 /// , implot.cpp:536 ///
ImPlotPlot* GetPlot(const char* title) ///
///
/// /// /// Gets a plot from the current ImPlotContext /// /// public static unsafe ImPlotPlotPtr GetPlot(ImString title) { fixed (byte* title_fixed = title) { return PInvoke.GetPlot_internal(title_fixed); } } /// /// /// C++: /// implot_internal.h:1278 /// , implot.cpp:542 ///
ImPlotPlot* GetCurrentPlot() ///
///
/// /// /// Gets the current plot from the current ImPlotContext /// /// public static unsafe ImPlotPlotPtr GetCurrentPlot() => PInvoke.GetCurrentPlot_internal(); /// /// /// C++: /// implot_internal.h:1280 /// , implot.cpp:546 ///
void BustPlotCache() ///
///
/// /// /// Busts the cache for every plot in the current context /// /// public static unsafe void BustPlotCache() => PInvoke.BustPlotCache_internal(); /// /// /// C++: /// implot_internal.h:1283 /// , implot.cpp:1515 ///
void ShowPlotContextMenu(ImPlotPlot& plot) ///
///
/// /// /// Shows a plot's context menu. /// /// public static unsafe void ShowPlotContextMenu(ImPlotPlotPtr plot) => PInvoke.ShowPlotContextMenu_internal(plot); /// /// /// C++: /// implot_internal.h:1290 ///
static inline void SetupLock() ///
///
/// /// /// Lock Setup and call SetupFinish if necessary. /// /// public static unsafe void SetupLock() => PInvoke.SetupLock_internal(); /// /// /// C++: /// implot_internal.h:1302 /// , implot.cpp:3335 ///
void SubplotNextCell() ///
///
/// /// /// Advances to next subplot /// /// public static unsafe void SubplotNextCell() => PInvoke.SubplotNextCell_internal(); /// /// /// C++: /// implot_internal.h:1305 /// , implot.cpp:1488 ///
void ShowSubplotsContextMenu(ImPlotSubplot& subplot) ///
///
/// /// /// Shows a subplot's context menu. /// /// public static unsafe void ShowSubplotsContextMenu(ImPlotSubplotPtr subplot) => PInvoke.ShowSubplotsContextMenu_internal(subplot); /// /// /// C++: /// implot_internal.h:1312 /// , /// implot_items.cpp:398 ///
/// bool BeginItem(const char* label_id, ImPlotItemFlags flags=0, ImPlotCol recolor_from=IMPLOT_AUTO) ///
///
/// /// /// Begins a new item. Returns false if the item should not be plotted. Pushes PlotClipRect. /// /// /// Begins a new item. Returns false if the item should not be plotted. /// /// 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); } } /// /// /// C++: /// implot_internal.h:1327 /// , /// implot_items.cpp:479 ///
void EndItem() ///
///
/// /// /// Ends an item (call only if BeginItem returns true). Pops PlotClipRect. /// /// /// Ends an item (call only if BeginItem returns true) /// /// public static unsafe void EndItem() => PInvoke.EndItem_internal(); /// /// /// C++: /// implot_internal.h:1330 /// , /// implot_items.cpp:287 ///
/// ImPlotItem* RegisterOrGetItem(const char* label_id, ImPlotItemFlags flags, bool* just_created = nullptr) ///
///
/// /// /// Register or get an existing item from the current plot. /// /// public static unsafe ImPlotItemPtr RegisterOrGetItem( ImString labelId, ImPlotItemFlags flags, Ptr justCreated = default ) { fixed (byte* labelId_fixed = labelId) { return PInvoke.RegisterOrGetItem_internal(labelId_fixed, flags, (Bool8*)justCreated); } } /// /// /// C++: /// implot_internal.h:1332 /// , /// implot_items.cpp:310 ///
ImPlotItem* GetItem(const char* label_id) ///
///
/// /// /// Get a plot item from the current plot. /// /// public static unsafe ImPlotItemPtr GetItem(ImString labelId) { fixed (byte* labelId_fixed = labelId) { return PInvoke.GetItem_internal(labelId_fixed); } } /// /// /// C++: /// implot_internal.h:1334 /// , /// implot_items.cpp:320 ///
ImPlotItem* GetCurrentItem() ///
///
/// /// /// Gets the current item. /// /// public static unsafe ImPlotItemPtr GetCurrentItem() => PInvoke.GetCurrentItem_internal(); /// /// /// C++: /// implot_internal.h:1336 /// , /// implot_items.cpp:360 ///
void BustItemCache() ///
///
/// /// /// Busts the cache for every item for every plot in the current context. /// /// public static unsafe void BustItemCache() => PInvoke.BustItemCache_internal(); /// /// /// C++: /// implot_internal.h:1343 ///
static inline bool AnyAxesInputLocked(ImPlotAxis* axes, int count) ///
///
/// /// /// Returns true if any enabled axis is locked from user input. /// /// public static unsafe bool AnyAxesInputLocked(ImPlotAxisPtr axes, int count) => PInvoke.AnyAxesInputLocked_internal(axes, count); /// /// /// C++: /// implot_internal.h:1352 ///
static inline bool AllAxesInputLocked(ImPlotAxis* axes, int count) ///
///
/// /// /// Returns true if all enabled axes are locked from user input. /// /// public static unsafe bool AllAxesInputLocked(ImPlotAxisPtr axes, int count) => PInvoke.AllAxesInputLocked_internal(axes, count); /// /// /// C++: /// implot_internal.h:1360 ///
static inline bool AnyAxesHeld(ImPlotAxis* axes, int count) ///
///
public static unsafe bool AnyAxesHeld(ImPlotAxisPtr axes, int count) => PInvoke.AnyAxesHeld_internal(axes, count); /// /// /// C++: /// implot_internal.h:1368 ///
static inline bool AnyAxesHovered(ImPlotAxis* axes, int count) ///
///
public static unsafe bool AnyAxesHovered(ImPlotAxisPtr axes, int count) => PInvoke.AnyAxesHovered_internal(axes, count); /// /// /// C++: /// implot_internal.h:1377 ///
static inline bool FitThisFrame() ///
///
/// /// /// Returns true if the user has requested data to be fit. /// /// public static unsafe bool FitThisFrame() => PInvoke.FitThisFrame_internal(); /// /// /// C++: /// implot_internal.h:1382 ///
static inline void FitPointX(double x) ///
///
/// /// /// Extends the current plot's axes so that it encompasses a vertical line at x /// /// public static unsafe void FitPointX(double x) => PInvoke.FitPointX_internal(x); /// /// /// C++: /// implot_internal.h:1389 ///
static inline void FitPointY(double y) ///
///
/// /// /// Extends the current plot's axes so that it encompasses a horizontal line at y /// /// public static unsafe void FitPointY(double y) => PInvoke.FitPointY_internal(y); /// /// /// C++: /// implot_internal.h:1396 ///
static inline void FitPoint(const ImPlotPoint& p) ///
///
/// /// /// Extends the current plot's axes so that it encompasses point p /// /// public static unsafe void FitPoint(in double2 p) { fixed (double2* p_fixed = &p) { PInvoke.FitPoint_internal(p_fixed); } } /// /// /// C++: /// implot_internal.h:1405 ///
static inline bool RangesOverlap(const ImPlotRange& r1, const ImPlotRange& r2) ///
///
/// /// /// Returns true if two ranges overlap /// /// 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); } } } /// /// /// C++: /// implot_internal.h:1409 /// , implot.cpp:1347 ///
/// void ShowAxisContextMenu(ImPlotAxis& axis, ImPlotAxis* equal_axis, bool time_allowed = false) ///
///
/// /// /// Shows an axis's context menu. /// /// public static unsafe void ShowAxisContextMenu( ImPlotAxisPtr axis, ImPlotAxisPtr equalAxis, bool timeAllowed = false ) => PInvoke.ShowAxisContextMenu_internal(axis, equalAxis, timeAllowed); /// /// /// C++: /// implot_internal.h:1416 /// , implot.cpp:556 ///
/// ImVec2 GetLocationPos(const ImRect& outer_rect, const ImVec2& inner_size, ImPlotLocation location, const ImVec2& pad = ImVec2(0,0)) ///
///
/// /// /// Gets the position of an inner rect that is located inside of an outer rect according to an /// ImPlotLocation and padding amount. /// /// 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 ); } } } /// /// /// C++: /// implot_internal.h:1418 /// , implot.cpp:576 ///
/// ImVec2 CalcLegendSize(ImPlotItemGroup& items, const ImVec2& pad, const ImVec2& spacing, bool vertical) ///
///
/// /// /// Calculates the bounding box size of a legend _before_ clipping. /// /// 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); } } } /// /// /// C++: /// implot_internal.h:1420 /// , implot.cpp:597 ///
/// bool ClampLegendRect(ImRect& legend_rect, const ImRect& outer_rect, const ImVec2& pad) ///
///
/// /// /// Clips calculated legend size /// /// public static unsafe bool ClampLegendRect(Ptr 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); } } } /// /// /// C++: /// implot_internal.h:1422 /// , implot.cpp:628 ///
/// bool ShowLegendEntries(ImPlotItemGroup& items, const ImRect& legend_bb, bool interactable, const ImVec2& pad, const ImVec2& spacing, bool vertical, ImDrawList& DrawList) ///
///
/// /// /// Renders legend entries into a bounding box /// /// 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 ); } } } } /// /// /// C++: /// implot_internal.h:1424 /// , implot.cpp:4246 ///
/// void ShowAltLegend(const char* title_id, bool vertical = true, const ImVec2 size = ImVec2(0,0), bool interactable = true) ///
///
/// /// /// 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!). /// /// 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); } } /// /// /// C++: /// implot_internal.h:1426 /// , implot.cpp:1462 ///
bool ShowLegendContextMenu(ImPlotLegend& legend, bool visible) ///
///
/// /// /// Shows a legend's context menu. /// /// public static unsafe bool ShowLegendContextMenu(ImPlotLegendPtr legend, bool visible) => PInvoke.ShowLegendContextMenu_internal(legend, visible); /// /// /// C++: /// implot_internal.h:1433 /// , implot.cpp:1599 ///
/// void LabelAxisValue(const ImPlotAxis& axis, double value, char* buff, int size, bool round = false) ///
///
/// /// /// Create a a string label for a an axis value /// /// public static unsafe void LabelAxisValue( in ImPlotAxis axis, double value, Ptr buff, int size, bool round = false ) { fixed (ImPlotAxis* axis_fixed = &axis) { PInvoke.LabelAxisValue_internal(axis_fixed, value, (byte*)buff, size, round); } } /// /// /// C++: /// implot_internal.h:1440 ///
static inline const ImPlotNextItemData& GetItemData() ///
///
/// /// /// Get styling data for next item (call between Begin/EndItem) /// /// public static unsafe ImPlotNextItemDataPtr GetItemData() => PInvoke.GetItemData_internal(); /// /// /// C++: /// implot_internal.h:1443 ///
static inline bool IsColorAuto(const ImVec4& col) ///
///
/// /// /// Returns true if a color is set to be automatically determined /// /// public static unsafe bool IsColorAuto(in float4 col) { fixed (float4* col_fixed = &col) { return PInvoke.IsColorAuto_internal_0(col_fixed); } } /// /// /// C++: /// implot_internal.h:1445 ///
static inline bool IsColorAuto(ImPlotCol idx) ///
///
/// /// /// Returns true if a style color is set to be automatically determined /// /// public static unsafe bool IsColorAuto(ImPlotCol idx) => PInvoke.IsColorAuto_internal_1(idx); /// /// /// C++: /// implot_internal.h:1447 /// , implot.cpp:262 ///
ImVec4 GetAutoColor(ImPlotCol idx) ///
///
/// /// /// Returns the automatically deduced style color /// /// public static unsafe float4 GetAutoColor(ImPlotCol idx) => PInvoke.GetAutoColor_internal(idx); /// /// /// C++: /// implot_internal.h:1450 ///
static inline ImVec4 GetStyleColorVec4(ImPlotCol idx) ///
///
/// /// /// Returns the style color whether it is automatic or custom set /// /// public static unsafe float4 GetStyleColorVec4(ImPlotCol idx) => PInvoke.GetStyleColorVec4_internal(idx); /// /// /// C++: /// implot_internal.h:1451 ///
static inline ImU32 GetStyleColorU32(ImPlotCol idx) ///
///
/// /// /// Returns the style color whether it is automatic or custom set /// /// public static unsafe uint GetStyleColorU32(ImPlotCol idx) => PInvoke.GetStyleColorU32_internal(idx); /// /// /// C++: /// implot_internal.h:1454 /// , implot.cpp:340 ///
/// void AddTextVertical(ImDrawList *DrawList, ImVec2 pos, ImU32 col, const char* text_begin, const char* text_end = nullptr) ///
///
/// /// /// Draws vertical text. The position is the bottom left of the text rect. /// /// 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); } } /// /// /// C++: /// implot_internal.h:1456 /// , implot.cpp:388 ///
/// void AddTextCentered(ImDrawList* DrawList, ImVec2 top_center, ImU32 col, const char* text_begin, const char* text_end = nullptr) ///
///
/// /// /// Draws multiline horizontal text centered. /// /// 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); } } /// /// /// C++: /// implot_internal.h:1458 ///
static inline ImVec2 CalcTextSizeVertical(const char *text) ///
///
/// /// /// Calculates the size of vertical text /// /// public static unsafe float2 CalcTextSizeVertical(ImString text) { fixed (byte* text_fixed = text) { return PInvoke.CalcTextSizeVertical_internal(text_fixed); } } /// /// /// C++: /// implot_internal.h:1463 ///
static inline ImU32 CalcTextColor(const ImVec4& bg) ///
///
/// /// /// Returns white or black text given background color /// /// public static unsafe uint CalcTextColor(in float4 bg) { fixed (float4* bg_fixed = &bg) { return PInvoke.CalcTextColor_internal_0(bg_fixed); } } /// /// /// C++: /// implot_internal.h:1464 ///
static inline ImU32 CalcTextColor(ImU32 bg) ///
///
/// /// /// Returns white or black text given background color /// /// public static unsafe uint CalcTextColor(uint bg) => PInvoke.CalcTextColor_internal_1(bg); /// /// /// C++: /// implot_internal.h:1466 ///
static inline ImU32 CalcHoverColor(ImU32 col) ///
///
/// /// /// Lightens or darkens a color for hover /// /// public static unsafe uint CalcHoverColor(ImColor8 col) => PInvoke.CalcHoverColor_internal(col); /// /// /// C++: /// implot_internal.h:1469 ///
/// static inline ImVec2 ClampLabelPos(ImVec2 pos, const ImVec2& size, const ImVec2& Min, const ImVec2& Max) ///
///
/// /// /// Clamps a label position so that it fits a rect defined by Min/Max /// /// 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); } } } } /// /// /// C++: /// implot_internal.h:1478 /// , implot.cpp:4572 ///
ImU32 GetColormapColorU32(int idx, ImPlotColormap cmap) ///
///
/// /// /// Returns a color from the Color map given an index >= 0 (modulo will be performed). /// /// public static unsafe uint GetColormapColorU32(int idx, ImPlotColormap cmap) => PInvoke.GetColormapColorU32_internal(idx, cmap); /// /// /// C++: /// implot_internal.h:1480 /// , implot.cpp:4552 ///
ImU32 NextColormapColorU32() ///
///
/// /// /// Returns the next unused colormap color and advances the colormap. Can be used to skip colors if /// desired. /// /// public static unsafe uint NextColormapColorU32() => PInvoke.NextColormapColorU32_internal(); /// /// /// C++: /// implot_internal.h:1482 /// , implot.cpp:4584 ///
ImU32 SampleColormapU32(float t, ImPlotColormap cmap) ///
///
/// /// /// Linearly interpolates a color from the current colormap given t between 0 and 1. /// /// public static unsafe uint SampleColormapU32(float t, ImPlotColormap cmap) => PInvoke.SampleColormapU32_internal(t, cmap); /// /// /// C++: /// implot_internal.h:1485 /// , implot.cpp:4595 ///
/// void RenderColorBar(const ImU32* colors, int size, ImDrawList& DrawList, const ImRect& bounds, bool vert, bool reversed, bool continuous) ///
///
/// /// /// Render a colormap bar /// /// public static unsafe void RenderColorBar( Ptr 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 ); } } /// /// /// C++: /// implot_internal.h:1492 /// , implot.cpp:403 ///
double NiceNum(double x, bool round) ///
///
/// /// /// Rounds x to powers of 2,5 and 10 for generating axis labels (from Graphics Gems 1 Chapter 11.2) /// /// public static unsafe double NiceNum(double x, bool round) => PInvoke.NiceNum_internal(x, round); /// /// /// C++: /// implot_internal.h:1494 ///
static inline int OrderOfMagnitude(double val) ///
///
/// /// /// Computes order of magnitude of double. /// /// public static unsafe int OrderOfMagnitude(double val) => PInvoke.OrderOfMagnitude_internal(val); /// /// /// C++: /// implot_internal.h:1496 ///
static inline int OrderToPrecision(int order) ///
///
/// /// /// Returns the precision required for a order of magnitude. /// /// public static unsafe int OrderToPrecision(int order) => PInvoke.OrderToPrecision_internal(order); /// /// /// C++: /// implot_internal.h:1498 ///
static inline int Precision(double val) ///
///
/// /// /// Returns a floating point precision to use given a value /// /// public static unsafe int Precision(double val) => PInvoke.Precision_internal(val); /// /// /// C++: /// implot_internal.h:1500 ///
static inline double RoundTo(double val, int prec) ///
///
/// /// /// Round a value to a given precision /// /// public static unsafe double RoundTo(double val, int prec) => PInvoke.RoundTo_internal(val, prec); /// /// /// C++: /// implot_internal.h:1503 ///
/// static inline ImVec2 Intersection(const ImVec2& a1, const ImVec2& a2, const ImVec2& b1, const ImVec2& b2) ///
///
/// /// /// Returns the intersection point of two lines A and B (assumes they are not parallel!) /// /// 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); } } } } } /// /// /// C++: /// implot_internal.h:1520 ///
template <typename T> ///
///
/// /// /// Calculate histogram bin counts and widths /// /// public static unsafe void CalculateBins( Ptr values, int count, ImPlotBin meth, in ImPlotRange range, Ptr binsOut, Ptr widthOut ) { fixed (ImPlotRange* range_fixed = &range) { PInvoke.CalculateBins_internal_float( (float*)values, count, meth, range_fixed, (int*)binsOut, (double*)widthOut ); } } /// /// /// C++: /// implot_internal.h:1520 ///
template <typename T> ///
///
/// /// /// Calculate histogram bin counts and widths /// /// public static unsafe void CalculateBins( Ptr values, int count, ImPlotBin meth, in ImPlotRange range, Ptr binsOut, Ptr widthOut ) { fixed (ImPlotRange* range_fixed = &range) { PInvoke.CalculateBins_internal_double( (double*)values, count, meth, range_fixed, (int*)binsOut, (double*)widthOut ); } } /// /// /// C++: /// implot_internal.h:1520 ///
template <typename T> ///
///
/// /// /// Calculate histogram bin counts and widths /// /// public static unsafe void CalculateBins( Ptr values, int count, ImPlotBin meth, in ImPlotRange range, Ptr binsOut, Ptr widthOut ) { fixed (ImPlotRange* range_fixed = &range) { PInvoke.CalculateBins_internal_sbyte( (sbyte*)values, count, meth, range_fixed, (int*)binsOut, (double*)widthOut ); } } /// /// /// C++: /// implot_internal.h:1520 ///
template <typename T> ///
///
/// /// /// Calculate histogram bin counts and widths /// /// public static unsafe void CalculateBins( Ptr values, int count, ImPlotBin meth, in ImPlotRange range, Ptr binsOut, Ptr widthOut ) { fixed (ImPlotRange* range_fixed = &range) { PInvoke.CalculateBins_internal_byte( (byte*)values, count, meth, range_fixed, (int*)binsOut, (double*)widthOut ); } } /// /// /// C++: /// implot_internal.h:1520 ///
template <typename T> ///
///
/// /// /// Calculate histogram bin counts and widths /// /// public static unsafe void CalculateBins( Ptr values, int count, ImPlotBin meth, in ImPlotRange range, Ptr binsOut, Ptr widthOut ) { fixed (ImPlotRange* range_fixed = &range) { PInvoke.CalculateBins_internal_short( (short*)values, count, meth, range_fixed, (int*)binsOut, (double*)widthOut ); } } /// /// /// C++: /// implot_internal.h:1520 ///
template <typename T> ///
///
/// /// /// Calculate histogram bin counts and widths /// /// public static unsafe void CalculateBins( Ptr values, int count, ImPlotBin meth, in ImPlotRange range, Ptr binsOut, Ptr widthOut ) { fixed (ImPlotRange* range_fixed = &range) { PInvoke.CalculateBins_internal_ushort( (ushort*)values, count, meth, range_fixed, (int*)binsOut, (double*)widthOut ); } } /// /// /// C++: /// implot_internal.h:1520 ///
template <typename T> ///
///
/// /// /// Calculate histogram bin counts and widths /// /// public static unsafe void CalculateBins( Ptr values, int count, ImPlotBin meth, in ImPlotRange range, Ptr binsOut, Ptr widthOut ) { fixed (ImPlotRange* range_fixed = &range) { PInvoke.CalculateBins_internal_int( (int*)values, count, meth, range_fixed, (int*)binsOut, (double*)widthOut ); } } /// /// /// C++: /// implot_internal.h:1520 ///
template <typename T> ///
///
/// /// /// Calculate histogram bin counts and widths /// /// public static unsafe void CalculateBins( Ptr values, int count, ImPlotBin meth, in ImPlotRange range, Ptr binsOut, Ptr widthOut ) { fixed (ImPlotRange* range_fixed = &range) { PInvoke.CalculateBins_internal_uint( (uint*)values, count, meth, range_fixed, (int*)binsOut, (double*)widthOut ); } } /// /// /// C++: /// implot_internal.h:1520 ///
template <typename T> ///
///
/// /// /// Calculate histogram bin counts and widths /// /// public static unsafe void CalculateBins( Ptr values, int count, ImPlotBin meth, in ImPlotRange range, Ptr binsOut, Ptr widthOut ) { fixed (ImPlotRange* range_fixed = &range) { PInvoke.CalculateBins_internal_long( (long*)values, count, meth, range_fixed, (int*)binsOut, (double*)widthOut ); } } /// /// /// C++: /// implot_internal.h:1520 ///
template <typename T> ///
///
/// /// /// Calculate histogram bin counts and widths /// /// public static unsafe void CalculateBins( Ptr values, int count, ImPlotBin meth, in ImPlotRange range, Ptr binsOut, Ptr widthOut ) { fixed (ImPlotRange* range_fixed = &range) { PInvoke.CalculateBins_internal_ulong( (ulong*)values, count, meth, range_fixed, (int*)binsOut, (double*)widthOut ); } } /// /// /// C++: /// implot_internal.h:1545 ///
static inline bool IsLeapYear(int year) ///
///
/// /// /// Returns true if year is leap year (366 days long) /// /// public static unsafe bool IsLeapYear(int year) => PInvoke.IsLeapYear_internal(year); /// /// /// C++: /// implot_internal.h:1549 ///
static inline int GetDaysInMonth(int year, int month) ///
///
/// /// /// Returns the number of days in a month, accounting for Feb. leap years. #month is zero indexed. /// /// public static unsafe int GetDaysInMonth(int year, int month) => PInvoke.GetDaysInMonth_internal(year, month); /// /// /// C++: /// implot_internal.h:1555 /// , implot.cpp:915 ///
ImPlotTime MkGmtTime(struct tm *ptm) ///
///
/// /// /// Make a UNIX timestamp from a tm struct expressed in UTC time (i.e. GMT timezone). /// /// public static unsafe ImPlotTime MkGmtTime(Ptr ptm) => PInvoke.MkGmtTime_internal((tm*)ptm); /// /// /// C++: /// implot_internal.h:1557 /// , implot.cpp:927 ///
tm* GetGmtTime(const ImPlotTime& t, tm* ptm) ///
///
/// /// /// Make a tm struct expressed in UTC time (i.e. GMT timezone) from a UNIX timestamp. /// /// public static unsafe Ptr GetGmtTime(in ImPlotTime t, Ptr ptm) { fixed (ImPlotTime* t_fixed = &t) { return PInvoke.GetGmtTime_internal(t_fixed, (tm*)ptm); } } /// /// /// C++: /// implot_internal.h:1560 /// , implot.cpp:939 ///
ImPlotTime MkLocTime(struct tm *ptm) ///
///
/// /// /// Make a UNIX timestamp from a tm struct expressed in local time. /// /// public static unsafe ImPlotTime MkLocTime(Ptr ptm) => PInvoke.MkLocTime_internal((tm*)ptm); /// /// /// C++: /// implot_internal.h:1562 /// , implot.cpp:947 ///
tm* GetLocTime(const ImPlotTime& t, tm* ptm) ///
///
/// /// /// Make a tm struct expressed in local time from a UNIX timestamp. /// /// public static unsafe Ptr GetLocTime(in ImPlotTime t, Ptr ptm) { fixed (ImPlotTime* t_fixed = &t) { return PInvoke.GetLocTime_internal(t_fixed, (tm*)ptm); } } /// /// /// C++: /// implot_internal.h:1568 ///
static inline ImPlotTime MkTime(struct tm *ptm) ///
///
/// /// /// // Make a UNIX timestamp from a tm struct according to the current ImPlotStyle.UseLocalTime setting. /// /// public static unsafe ImPlotTime MkTime(Ptr ptm) => PInvoke.MkTime_internal((tm*)ptm); /// /// /// C++: /// implot_internal.h:1573 ///
static inline tm* GetTime(const ImPlotTime& t, tm* ptm) ///
///
/// /// /// Get a tm struct from a UNIX timestamp according to the current ImPlotStyle.UseLocalTime setting. /// /// public static unsafe Ptr GetTime(in ImPlotTime t, Ptr ptm) { fixed (ImPlotTime* t_fixed = &t) { return PInvoke.GetTime_internal(t_fixed, (tm*)ptm); } } /// /// /// C++: /// implot_internal.h:1580 /// , implot.cpp:958 ///
/// ImPlotTime MakeTime(int year, int month = 0, int day = 1, int hour = 0, int min = 0, int sec = 0, int us = 0) ///
///
/// /// /// 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] /// /// 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); /// /// /// C++: /// implot_internal.h:1582 /// , implot.cpp:981 ///
int GetYear(const ImPlotTime& t) ///
///
/// /// /// Get year component from timestamp [1970-3000] /// /// public static unsafe int GetYear(in ImPlotTime t) { fixed (ImPlotTime* t_fixed = &t) { return PInvoke.GetYear_internal(t_fixed); } } /// /// /// C++: /// implot_internal.h:1584 /// , implot.cpp:987 ///
int GetMonth(const ImPlotTime& t) ///
///
/// /// /// Get month component from timestamp [0-11] /// /// public static unsafe int GetMonth(in ImPlotTime t) { fixed (ImPlotTime* t_fixed = &t) { return PInvoke.GetMonth_internal(t_fixed); } } /// /// /// C++: /// implot_internal.h:1587 /// , implot.cpp:993 ///
ImPlotTime AddTime(const ImPlotTime& t, ImPlotTimeUnit unit, int count) ///
///
/// /// /// Adds or subtracts time from a timestamp. #count > 0 to add, < 0 to subtract. /// /// 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); } } /// /// /// C++: /// implot_internal.h:1589 /// , implot.cpp:1025 ///
ImPlotTime FloorTime(const ImPlotTime& t, ImPlotTimeUnit unit) ///
///
/// /// /// Rounds a timestamp down to nearest unit. /// /// public static unsafe ImPlotTime FloorTime(in ImPlotTime t, ImPlotTimeUnit unit) { fixed (ImPlotTime* t_fixed = &t) { return PInvoke.FloorTime_internal(t_fixed, unit); } } /// /// /// C++: /// implot_internal.h:1591 /// , implot.cpp:1042 ///
ImPlotTime CeilTime(const ImPlotTime& t, ImPlotTimeUnit unit) ///
///
/// /// /// Rounds a timestamp up to the nearest unit. /// /// public static unsafe ImPlotTime CeilTime(in ImPlotTime t, ImPlotTimeUnit unit) { fixed (ImPlotTime* t_fixed = &t) { return PInvoke.CeilTime_internal(t_fixed, unit); } } /// /// /// C++: /// implot_internal.h:1593 /// , implot.cpp:1046 ///
ImPlotTime RoundTime(const ImPlotTime& t, ImPlotTimeUnit unit) ///
///
/// /// /// Rounds a timestamp up or down to the nearest unit. /// /// public static unsafe ImPlotTime RoundTime(in ImPlotTime t, ImPlotTimeUnit unit) { fixed (ImPlotTime* t_fixed = &t) { return PInvoke.RoundTime_internal(t_fixed, unit); } } /// /// /// C++: /// implot_internal.h:1595 /// , implot.cpp:1054 ///
/// ImPlotTime CombineDateTime(const ImPlotTime& date_part, const ImPlotTime& time_part) ///
///
/// /// /// Combines the date of one timestamp with the time-of-day of another timestamp. /// /// 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); } } } /// /// /// C++: /// implot_internal.h:1598 ///
static inline ImPlotTime Now() ///
///
/// /// /// Get the current time as a timestamp. /// /// public static unsafe ImPlotTime Now() => PInvoke.Now_internal(); /// /// /// C++: /// implot_internal.h:1600 ///
static inline ImPlotTime Today() ///
///
/// /// /// Get the current date as a timestamp. /// /// public static unsafe ImPlotTime Today() => PInvoke.Today_internal(); /// /// /// C++: /// implot_internal.h:1603 /// , implot.cpp:1075 ///
/// int FormatTime(const ImPlotTime& t, char* buffer, int size, ImPlotTimeFmt fmt, bool use_24_hr_clk) ///
///
/// /// /// Formats the time part of timestamp t into a buffer according to #fmt /// /// public static unsafe int FormatTime( in ImPlotTime t, Ptr buffer, int size, ImPlotTimeFmt text, bool use24HrClk ) { fixed (ImPlotTime* t_fixed = &t) { return PInvoke.FormatTime_internal(t_fixed, (byte*)buffer, size, text, use24HrClk); } } /// /// /// C++: /// implot_internal.h:1605 /// , implot.cpp:1115 ///
/// int FormatDate(const ImPlotTime& t, char* buffer, int size, ImPlotDateFmt fmt, bool use_iso_8601) ///
///
/// /// /// Formats the date part of timestamp t into a buffer according to #fmt /// /// public static unsafe int FormatDate( in ImPlotTime t, Ptr buffer, int size, ImPlotDateFmt text, bool useIso8601 ) { fixed (ImPlotTime* t_fixed = &t) { return PInvoke.FormatDate_internal(t_fixed, (byte*)buffer, size, text, useIso8601); } } /// /// /// C++: /// implot_internal.h:1607 /// , implot.cpp:1144 ///
/// int FormatDateTime(const ImPlotTime& t, char* buffer, int size, ImPlotDateTimeSpec fmt) ///
///
/// /// /// Formats the time and/or date parts of a timestamp t into a buffer according to #fmt /// /// public static unsafe int FormatDateTime( in ImPlotTime t, Ptr buffer, int size, ImPlotDateTimeSpec text ) { fixed (ImPlotTime* t_fixed = &t) { return PInvoke.FormatDateTime_internal(t_fixed, (byte*)buffer, size, text); } } /// /// /// C++: /// implot_internal.h:1613 /// , implot.cpp:5451 ///
/// bool ShowDatePicker(const char* id, int* level, ImPlotTime* t, const ImPlotTime* t1 = nullptr, const ImPlotTime* t2 = nullptr) ///
///
/// /// /// 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. /// /// public static unsafe bool ShowDatePicker( ImString id, Ptr 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); } } /// /// /// C++: /// implot_internal.h:1616 /// , implot.cpp:5662 ///
bool ShowTimePicker(const char* id, ImPlotTime* t) ///
///
/// /// /// 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. /// /// public static unsafe bool ShowTimePicker(ImString id, ImPlotTimePtr t) { fixed (byte* id_fixed = id) { return PInvoke.ShowTimePicker_internal(id_fixed, t); } } /// /// /// C++: /// implot_internal.h:1622 ///
static inline double TransformForward_Log10(double v, void*) ///
///
public static unsafe double TransformForward_Log10(double v, Ptr _) => PInvoke.TransformForward_Log10_internal(v, _); /// /// /// C++: /// implot_internal.h:1627 ///
static inline double TransformInverse_Log10(double v, void*) ///
///
public static unsafe double TransformInverse_Log10(double v, Ptr _) => PInvoke.TransformInverse_Log10_internal(v, _); /// /// /// C++: /// implot_internal.h:1631 ///
static inline double TransformForward_SymLog(double v, void*) ///
///
public static unsafe double TransformForward_SymLog(double v, Ptr _) => PInvoke.TransformForward_SymLog_internal(v, _); /// /// /// C++: /// implot_internal.h:1635 ///
static inline double TransformInverse_SymLog(double v, void*) ///
///
public static unsafe double TransformInverse_SymLog(double v, Ptr _) => PInvoke.TransformInverse_SymLog_internal(v, _); /// /// /// C++: /// implot_internal.h:1639 ///
static inline double TransformForward_Logit(double v, void*) ///
///
public static unsafe double TransformForward_Logit(double v, Ptr _) => PInvoke.TransformForward_Logit_internal(v, _); /// /// /// C++: /// implot_internal.h:1644 ///
static inline double TransformInverse_Logit(double v, void*) ///
///
public static unsafe double TransformInverse_Logit(double v, Ptr _) => PInvoke.TransformInverse_Logit_internal(v, _); /// /// /// C++: /// implot_internal.h:1652 ///
static inline int Formatter_Default(double value, char* buff, int size, void* data) ///
///
public static unsafe int Formatter_Default(double value, Ptr buff, int size, Ptr data) => PInvoke.Formatter_Default_internal(value, (byte*)buff, size, data); /// /// /// C++: /// implot_internal.h:1657 ///
static inline int Formatter_Logit(double value, char* buff, int size, void*) ///
///
public static unsafe int Formatter_Logit(double value, Ptr buff, int size, Ptr _) => PInvoke.Formatter_Logit_internal(value, (byte*)buff, size, _); /// /// /// C++: /// implot_internal.h:1673 ///
static inline int Formatter_Time(double, char* buff, int size, void* data) ///
///
public static unsafe int Formatter_Time(double _, Ptr buff, int size, Ptr data) => PInvoke.Formatter_Time_internal(_, (byte*)buff, size, data); /// /// /// C++: /// implot_internal.h:1682 /// , implot.cpp:722 ///
/// void Locator_Default(ImPlotTicker& ticker, const ImPlotRange& range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data) ///
///
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 ); } } /// /// /// C++: /// implot_internal.h:1682 /// , implot.cpp:722 ///
/// void Locator_Default(ImPlotTicker& ticker, const ImPlotRange& range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data) ///
///
public static unsafe void Locator_Default( ImPlotTickerPtr ticker, in ImPlotRange range, float pixels, bool vertical, delegate* unmanaged[Cdecl] formatter, Ptr formatterData ) { fixed (ImPlotRange* range_fixed = &range) { PInvoke.Locator_Default_internal( ticker, range_fixed, pixels, vertical, (nint)formatter, formatterData ); } } /// /// /// C++: /// implot_internal.h:1683 /// , implot.cpp:1222 ///
/// void Locator_Time(ImPlotTicker& ticker, const ImPlotRange& range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data) ///
///
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 ); } } /// /// /// C++: /// implot_internal.h:1683 /// , implot.cpp:1222 ///
/// void Locator_Time(ImPlotTicker& ticker, const ImPlotRange& range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data) ///
///
public static unsafe void Locator_Time( ImPlotTickerPtr ticker, in ImPlotRange range, float pixels, bool vertical, delegate* unmanaged[Cdecl] formatter, Ptr formatterData ) { fixed (ImPlotRange* range_fixed = &range) { PInvoke.Locator_Time_internal( ticker, range_fixed, pixels, vertical, (nint)formatter, formatterData ); } } /// /// /// C++: /// implot_internal.h:1684 /// , implot.cpp:802 ///
/// void Locator_Log10(ImPlotTicker& ticker, const ImPlotRange& range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data) ///
///
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 ); } } /// /// /// C++: /// implot_internal.h:1684 /// , implot.cpp:802 ///
/// void Locator_Log10(ImPlotTicker& ticker, const ImPlotRange& range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data) ///
///
public static unsafe void Locator_Log10( ImPlotTickerPtr ticker, in ImPlotRange range, float pixels, bool vertical, delegate* unmanaged[Cdecl] formatter, Ptr formatterData ) { fixed (ImPlotRange* range_fixed = &range) { PInvoke.Locator_Log10_internal( ticker, range_fixed, pixels, vertical, (nint)formatter, formatterData ); } } /// /// /// C++: /// implot_internal.h:1685 /// , implot.cpp:819 ///
/// void Locator_SymLog(ImPlotTicker& ticker, const ImPlotRange& range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data) ///
///
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 ); } } /// /// /// C++: /// implot_internal.h:1685 /// , implot.cpp:819 ///
/// void Locator_SymLog(ImPlotTicker& ticker, const ImPlotRange& range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data) ///
///
public static unsafe void Locator_SymLog( ImPlotTickerPtr ticker, in ImPlotRange range, float pixels, bool vertical, delegate* unmanaged[Cdecl] formatter, Ptr formatterData ) { fixed (ImPlotRange* range_fixed = &range) { PInvoke.Locator_SymLog_internal( ticker, range_fixed, pixels, vertical, (nint)formatter, formatterData ); } } } } }